diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-05-11 16:10:47 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-05-13 17:43:32 +0300 |
| commit | ea1c6df81eecad62ca25191042b7871291162933 (patch) | |
| tree | 1b15aa95ddebd7d614f822d570757103f5420795 /src/librustc/ich | |
| parent | da8b6e276e6894c3926610c1350e0d62ca83fdc7 (diff) | |
| download | rust-ea1c6df81eecad62ca25191042b7871291162933.tar.gz rust-ea1c6df81eecad62ca25191042b7871291162933.zip | |
rustc: stop interning CodeExtent, it's small enough.
Diffstat (limited to 'src/librustc/ich')
| -rw-r--r-- | src/librustc/ich/impls_ty.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/librustc/ich/impls_ty.rs b/src/librustc/ich/impls_ty.rs index 6d6520adc4e..3bbac8d6a64 100644 --- a/src/librustc/ich/impls_ty.rs +++ b/src/librustc/ich/impls_ty.rs @@ -39,7 +39,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a, 'tcx>> for ty::subst::Kind<'t } } -impl<'a, 'tcx> HashStable<StableHashingContext<'a, 'tcx>> for ty::RegionKind<'tcx> { +impl<'a, 'tcx> HashStable<StableHashingContext<'a, 'tcx>> for ty::RegionKind { fn hash_stable<W: StableHasherResult>(&self, hcx: &mut StableHashingContext<'a, 'tcx>, hasher: &mut StableHasher<W>) { @@ -428,24 +428,24 @@ impl_stable_hash_for!(enum ty::cast::CastKind { FnPtrAddrCast }); -impl<'a, 'tcx> HashStable<StableHashingContext<'a, 'tcx>> for ::middle::region::CodeExtentData +impl<'a, 'tcx> HashStable<StableHashingContext<'a, 'tcx>> for ::middle::region::CodeExtent { fn hash_stable<W: StableHasherResult>(&self, hcx: &mut StableHashingContext<'a, 'tcx>, hasher: &mut StableHasher<W>) { - use middle::region::CodeExtentData; + use middle::region::CodeExtent; mem::discriminant(self).hash_stable(hcx, hasher); match *self { - CodeExtentData::Misc(node_id) | - CodeExtentData::DestructionScope(node_id) => { + CodeExtent::Misc(node_id) | + CodeExtent::DestructionScope(node_id) => { node_id.hash_stable(hcx, hasher); } - CodeExtentData::CallSiteScope(body_id) | - CodeExtentData::ParameterScope(body_id) => { + CodeExtent::CallSiteScope(body_id) | + CodeExtent::ParameterScope(body_id) => { body_id.hash_stable(hcx, hasher); } - CodeExtentData::Remainder(block_remainder) => { + CodeExtent::Remainder(block_remainder) => { block_remainder.hash_stable(hcx, hasher); } } |
