Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
15ccdeb2
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
15ccdeb2
编写于
9月 03, 2020
作者:
M
Matt Brubeck
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update to hashbrown 0.9
上级
90782cb5
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
10 addition
and
11 deletion
+10
-11
Cargo.lock
Cargo.lock
+4
-5
library/std/Cargo.toml
library/std/Cargo.toml
+1
-1
library/std/src/collections/hash/map.rs
library/std/src/collections/hash/map.rs
+5
-5
未找到文件。
Cargo.lock
浏览文件 @
15ccdeb2
...
...
@@ -1259,11 +1259,10 @@ dependencies = [
[[package]]
name = "hashbrown"
version = "0.
8.2
"
version = "0.
9.0
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
e91b62f79061a0bc2e046024cb7ba44b08419ed238ecbd9adbd787434b9e8c25
"
checksum = "
00d63df3d41950fb462ed38308eea019113ad1508da725bbedcd0fa5a85ef5f7
"
dependencies = [
"autocfg",
"compiler_builtins",
"rustc-std-workspace-alloc",
"rustc-std-workspace-core",
...
...
@@ -1401,9 +1400,9 @@ dependencies = [
[[package]]
name = "indexmap"
version = "1.
5.1
"
version = "1.
6.0
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
86b45e59b16c76b11bf9738fd5d38879d3bd28ad292d7b313608becb17ae2df9
"
checksum = "
55e2e4c765aa53a0424761bf9f41aa7a6ac1efa87238f59560640e27fca028f2
"
dependencies = [
"autocfg",
"hashbrown",
...
...
library/std/Cargo.toml
浏览文件 @
15ccdeb2
...
...
@@ -20,7 +20,7 @@ libc = { version = "0.2.74", default-features = false, features = ['rustc-dep-of
compiler_builtins
=
{
version
=
"0.1.35"
}
profiler_builtins
=
{
path
=
"../profiler_builtins"
,
optional
=
true
}
unwind
=
{
path
=
"../unwind"
}
hashbrown
=
{
version
=
"0.
8.1
"
,
default-features
=
false
,
features
=
['rustc-dep-of-std']
}
hashbrown
=
{
version
=
"0.
9.0
"
,
default-features
=
false
,
features
=
['rustc-dep-of-std']
}
# Dependencies of the `backtrace` crate
addr2line
=
{
version
=
"0.13.0"
,
optional
=
true
,
default-features
=
false
}
...
...
library/std/src/collections/hash/map.rs
浏览文件 @
15ccdeb2
...
...
@@ -1247,7 +1247,7 @@ pub struct RawEntryBuilderMut<'a, K: 'a, V: 'a, S: 'a> {
#[unstable(feature
=
"hash_raw_entry"
,
issue
=
"56167"
)]
pub
enum
RawEntryMut
<
'a
,
K
:
'a
,
V
:
'a
,
S
:
'a
>
{
/// An occupied entry.
Occupied
(
RawOccupiedEntryMut
<
'a
,
K
,
V
>
),
Occupied
(
RawOccupiedEntryMut
<
'a
,
K
,
V
,
S
>
),
/// A vacant entry.
Vacant
(
RawVacantEntryMut
<
'a
,
K
,
V
,
S
>
),
}
...
...
@@ -1255,8 +1255,8 @@ pub enum RawEntryMut<'a, K: 'a, V: 'a, S: 'a> {
/// A view into an occupied entry in a `HashMap`.
/// It is part of the [`RawEntryMut`] enum.
#[unstable(feature
=
"hash_raw_entry"
,
issue
=
"56167"
)]
pub
struct
RawOccupiedEntryMut
<
'a
,
K
:
'a
,
V
:
'a
>
{
base
:
base
::
RawOccupiedEntryMut
<
'a
,
K
,
V
>
,
pub
struct
RawOccupiedEntryMut
<
'a
,
K
:
'a
,
V
:
'a
,
S
:
'a
>
{
base
:
base
::
RawOccupiedEntryMut
<
'a
,
K
,
V
,
S
>
,
}
/// A view into a vacant entry in a `HashMap`.
...
...
@@ -1457,7 +1457,7 @@ pub fn and_modify<F>(self, f: F) -> Self
}
}
impl
<
'a
,
K
,
V
>
RawOccupiedEntryMut
<
'a
,
K
,
V
>
{
impl
<
'a
,
K
,
V
,
S
>
RawOccupiedEntryMut
<
'a
,
K
,
V
,
S
>
{
/// Gets a reference to the key in the entry.
#[inline]
#[unstable(feature
=
"hash_raw_entry"
,
issue
=
"56167"
)]
...
...
@@ -1597,7 +1597,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
}
#[unstable(feature
=
"hash_raw_entry"
,
issue
=
"56167"
)]
impl
<
K
:
Debug
,
V
:
Debug
>
Debug
for
RawOccupiedEntryMut
<
'_
,
K
,
V
>
{
impl
<
K
:
Debug
,
V
:
Debug
,
S
>
Debug
for
RawOccupiedEntryMut
<
'_
,
K
,
V
,
S
>
{
fn
fmt
(
&
self
,
f
:
&
mut
fmt
::
Formatter
<
'_
>
)
->
fmt
::
Result
{
f
.debug_struct
(
"RawOccupiedEntryMut"
)
.field
(
"key"
,
self
.key
())
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录