Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
d07dd4ab
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,发现更多精彩内容 >>
提交
d07dd4ab
编写于
8月 08, 2017
作者:
M
Michael Woerister
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Implement HashStable for Xyz<'gcx> instead of Xyz<'lcx>.
上级
bcd75d66
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
40 addition
and
34 deletion
+40
-34
src/librustc/ich/impls_mir.rs
src/librustc/ich/impls_mir.rs
+12
-12
src/librustc/ich/impls_ty.rs
src/librustc/ich/impls_ty.rs
+19
-13
src/librustc/macros.rs
src/librustc/macros.rs
+8
-8
src/librustc/ty/mod.rs
src/librustc/ty/mod.rs
+1
-1
未找到文件。
src/librustc/ich/impls_mir.rs
浏览文件 @
d07dd4ab
...
...
@@ -33,7 +33,7 @@
impl_stable_hash_for!
(
struct
mir
::
BasicBlockData
<
'tcx
>
{
statements
,
terminator
,
is_cleanup
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Terminator
<
'
t
cx
>
{
for
mir
::
Terminator
<
'
g
cx
>
{
#[inline]
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
...
...
@@ -125,7 +125,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
TerminatorKind
<
'
t
cx
>
{
for
mir
::
TerminatorKind
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -186,7 +186,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
AssertMessage
<
'
t
cx
>
{
for
mir
::
AssertMessage
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -207,7 +207,7 @@ fn hash_stable<W: StableHasherResult>(&self,
impl_stable_hash_for!
(
struct
mir
::
Statement
<
'tcx
>
{
source_info
,
kind
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
StatementKind
<
'
t
cx
>
{
for
mir
::
StatementKind
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -244,7 +244,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
impl
<
'a
,
'gcx
,
'tcx
,
T
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
ValidationOperand
<
'
t
cx
,
T
>
for
mir
::
ValidationOperand
<
'
g
cx
,
T
>
where
T
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
...
...
@@ -260,7 +260,7 @@ fn hash_stable<W: StableHasherResult>(&self,
impl_stable_hash_for!
(
enum
mir
::
ValidationOp
{
Acquire
,
Release
,
Suspend
(
extent
)
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Lvalue
<
'
t
cx
>
{
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Lvalue
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -280,7 +280,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
impl
<
'a
,
'gcx
,
'tcx
,
B
,
V
,
T
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Projection
<
'
t
cx
,
B
,
V
,
T
>
for
mir
::
Projection
<
'
g
cx
,
B
,
V
,
T
>
where
B
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
,
V
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
,
T
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
...
...
@@ -299,7 +299,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
impl
<
'a
,
'gcx
,
'tcx
,
V
,
T
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
ProjectionElem
<
'
t
cx
,
V
,
T
>
for
mir
::
ProjectionElem
<
'
g
cx
,
V
,
T
>
where
V
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
,
T
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
{
...
...
@@ -335,7 +335,7 @@ fn hash_stable<W: StableHasherResult>(&self,
impl_stable_hash_for!
(
struct
mir
::
VisibilityScopeData
{
span
,
parent_scope
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Operand
<
'
t
cx
>
{
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Operand
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -352,7 +352,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
}
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Rvalue
<
'
t
cx
>
{
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Rvalue
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -413,7 +413,7 @@ fn hash_stable<W: StableHasherResult>(&self,
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
AggregateKind
<
'
t
cx
>
{
for
mir
::
AggregateKind
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -469,7 +469,7 @@ fn hash_stable<W: StableHasherResult>(&self,
impl_stable_hash_for!
(
struct
mir
::
Constant
<
'tcx
>
{
span
,
ty
,
literal
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Literal
<
'
t
cx
>
{
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
mir
::
Literal
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
src/librustc/ich/impls_ty.rs
浏览文件 @
d07dd4ab
...
...
@@ -20,7 +20,7 @@
use
ty
;
impl
<
'a
,
'gcx
,
'tcx
,
T
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
&
'
t
cx
ty
::
Slice
<
T
>
for
&
'
g
cx
ty
::
Slice
<
T
>
where
T
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
...
...
@@ -30,7 +30,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
subst
::
Kind
<
'
t
cx
>
{
for
ty
::
subst
::
Kind
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -55,6 +55,11 @@ fn hash_stable<W: StableHasherResult>(&self,
db
.depth
.hash_stable
(
hcx
,
hasher
);
i
.hash_stable
(
hcx
,
hasher
);
}
ty
::
ReLateBound
(
db
,
ty
::
BrNamed
(
def_id
,
name
))
=>
{
db
.depth
.hash_stable
(
hcx
,
hasher
);
def_id
.hash_stable
(
hcx
,
hasher
);
name
.hash_stable
(
hcx
,
hasher
);
}
ty
::
ReEarlyBound
(
ty
::
EarlyBoundRegion
{
def_id
,
index
,
name
})
=>
{
def_id
.hash_stable
(
hcx
,
hasher
);
index
.hash_stable
(
hcx
,
hasher
);
...
...
@@ -76,7 +81,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
adjustment
::
AutoBorrow
<
'
t
cx
>
{
for
ty
::
adjustment
::
AutoBorrow
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -94,7 +99,7 @@ fn hash_stable<W: StableHasherResult>(&self,
}
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
adjustment
::
Adjust
<
'
t
cx
>
{
for
ty
::
adjustment
::
Adjust
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -128,7 +133,7 @@ fn hash_stable<W: StableHasherResult>(&self,
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
UpvarCapture
<
'
t
cx
>
{
for
ty
::
UpvarCapture
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -150,12 +155,13 @@ fn hash_stable<W: StableHasherResult>(&self,
});
impl
<
'a
,
'gcx
,
'tcx
,
T
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
Binder
<
T
>
where
T
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
+
ty
::
fold
::
TypeFoldable
<
'tcx
>
where
T
:
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
hcx
.tcx
()
.anonymize_late_bound_regions
(
self
)
.0
.hash_stable
(
hcx
,
hasher
);
let
ty
::
Binder
(
ref
inner
)
=
*
self
;
inner
.hash_stable
(
hcx
,
hasher
);
}
}
...
...
@@ -190,7 +196,7 @@ fn hash_stable<W: StableHasherResult>(&self,
impl_stable_hash_for!
(
struct
ty
::
ProjectionTy
<
'tcx
>
{
substs
,
item_def_id
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
Predicate
<
'
t
cx
>
{
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
Predicate
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -256,7 +262,7 @@ fn hash_stable<W: StableHasherResult>(&self,
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
::
middle
::
const_val
::
ConstVal
<
'
t
cx
>
{
for
::
middle
::
const_val
::
ConstVal
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -483,7 +489,7 @@ fn hash_stable<W: StableHasherResult>(&self,
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
TypeVariants
<
'
t
cx
>
for
ty
::
TypeVariants
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
...
...
@@ -574,7 +580,7 @@ fn hash_stable<W: StableHasherResult>(&self,
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
ExistentialPredicate
<
'
t
cx
>
for
ty
::
ExistentialPredicate
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
...
...
@@ -607,7 +613,7 @@ fn hash_stable<W: StableHasherResult>(&self,
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
TypeckTables
<
'
t
cx
>
{
for
ty
::
TypeckTables
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
@@ -689,7 +695,7 @@ fn hash_stable<W: StableHasherResult>(&self,
substs
});
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
InstanceDef
<
'
t
cx
>
{
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
InstanceDef
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
src/librustc/macros.rs
浏览文件 @
d07dd4ab
...
...
@@ -73,10 +73,10 @@ pub fn from_u32(u: u32) -> Option<$name> {
#[macro_export]
macro_rules!
impl_stable_hash_for
{
(
enum
$enum_name:path
{
$
(
$variant:ident
$
(
(
$
(
$arg:ident
),
*
)
)
*
),
*
})
=>
{
impl
<
'a
,
'
gcx
,
'tcx
>
::
rustc_data_structures
::
stable_hasher
::
HashStable
<
$crate
::
ich
::
StableHashingContext
<
'a
,
'gcx
,
't
cx
>>
for
$enum_name
{
impl
<
'a
,
'
tcx
,
'lcx
>
::
rustc_data_structures
::
stable_hasher
::
HashStable
<
$crate
::
ich
::
StableHashingContext
<
'a
,
'tcx
,
'l
cx
>>
for
$enum_name
{
#[inline]
fn
hash_stable
<
W
:
::
rustc_data_structures
::
stable_hasher
::
StableHasherResult
>
(
&
self
,
__
ctx
:
&
mut
$crate
::
ich
::
StableHashingContext
<
'a
,
'
gcx
,
't
cx
>
,
__
ctx
:
&
mut
$crate
::
ich
::
StableHashingContext
<
'a
,
'
tcx
,
'l
cx
>
,
__
hasher
:
&
mut
::
rustc_data_structures
::
stable_hasher
::
StableHasher
<
W
>
)
{
use
$enum_name
::
*
;
::
std
::
mem
::
discriminant
(
self
)
.hash_stable
(
__
ctx
,
__
hasher
);
...
...
@@ -92,10 +92,10 @@ fn hash_stable<W: ::rustc_data_structures::stable_hasher::StableHasherResult>(&s
}
};
(
struct
$struct_name:path
{
$
(
$field:ident
),
*
})
=>
{
impl
<
'a
,
'
gcx
,
'tcx
>
::
rustc_data_structures
::
stable_hasher
::
HashStable
<
$crate
::
ich
::
StableHashingContext
<
'a
,
'gcx
,
't
cx
>>
for
$struct_name
{
impl
<
'a
,
'
tcx
,
'lcx
>
::
rustc_data_structures
::
stable_hasher
::
HashStable
<
$crate
::
ich
::
StableHashingContext
<
'a
,
'tcx
,
'l
cx
>>
for
$struct_name
{
#[inline]
fn
hash_stable
<
W
:
::
rustc_data_structures
::
stable_hasher
::
StableHasherResult
>
(
&
self
,
__
ctx
:
&
mut
$crate
::
ich
::
StableHashingContext
<
'a
,
'
gcx
,
't
cx
>
,
__
ctx
:
&
mut
$crate
::
ich
::
StableHashingContext
<
'a
,
'
tcx
,
'l
cx
>
,
__
hasher
:
&
mut
::
rustc_data_structures
::
stable_hasher
::
StableHasher
<
W
>
)
{
let
$struct_name
{
$
(
ref
$field
),
*
...
...
@@ -106,10 +106,10 @@ fn hash_stable<W: ::rustc_data_structures::stable_hasher::StableHasherResult>(&s
}
};
(
tuple_struct
$struct_name:path
{
$
(
$field:ident
),
*
})
=>
{
impl
<
'a
,
'
gcx
,
'tcx
>
::
rustc_data_structures
::
stable_hasher
::
HashStable
<
$crate
::
ich
::
StableHashingContext
<
'a
,
'gcx
,
't
cx
>>
for
$struct_name
{
impl
<
'a
,
'
tcx
,
'lcx
>
::
rustc_data_structures
::
stable_hasher
::
HashStable
<
$crate
::
ich
::
StableHashingContext
<
'a
,
'tcx
,
'l
cx
>>
for
$struct_name
{
#[inline]
fn
hash_stable
<
W
:
::
rustc_data_structures
::
stable_hasher
::
StableHasherResult
>
(
&
self
,
__
ctx
:
&
mut
$crate
::
ich
::
StableHashingContext
<
'a
,
'
gcx
,
't
cx
>
,
__
ctx
:
&
mut
$crate
::
ich
::
StableHashingContext
<
'a
,
'
tcx
,
'l
cx
>
,
__
hasher
:
&
mut
::
rustc_data_structures
::
stable_hasher
::
StableHasher
<
W
>
)
{
let
$struct_name
(
$
(
ref
$field
),
*
...
...
@@ -125,11 +125,11 @@ fn hash_stable<W: ::rustc_data_structures::stable_hasher::StableHasherResult>(&s
macro_rules!
impl_stable_hash_for_spanned
{
(
$T:path
)
=>
(
impl
<
'a
,
'
gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
't
cx
>>
for
::
syntax
::
codemap
::
Spanned
<
$T
>
impl
<
'a
,
'
tcx
,
'lcx
>
HashStable
<
StableHashingContext
<
'a
,
'tcx
,
'l
cx
>>
for
::
syntax
::
codemap
::
Spanned
<
$T
>
{
#[inline]
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'
gcx
,
't
cx
>
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'
tcx
,
'l
cx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
self
.node
.hash_stable
(
hcx
,
hasher
);
self
.span
.hash_stable
(
hcx
,
hasher
);
...
...
src/librustc/ty/mod.rs
浏览文件 @
d07dd4ab
...
...
@@ -497,7 +497,7 @@ pub fn is_suggestable(&self) -> bool {
}
}
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
TyS
<
'
t
cx
>
{
impl
<
'a
,
'gcx
,
'tcx
>
HashStable
<
StableHashingContext
<
'a
,
'gcx
,
'tcx
>>
for
ty
::
TyS
<
'
g
cx
>
{
fn
hash_stable
<
W
:
StableHasherResult
>
(
&
self
,
hcx
:
&
mut
StableHashingContext
<
'a
,
'gcx
,
'tcx
>
,
hasher
:
&
mut
StableHasher
<
W
>
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录