about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/impls_ty.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-02 15:34:59 +0200
committerRalf Jung <post@ralfj.de>2024-09-10 10:26:16 +0200
commitf76f128dc9dea86f52a40d465430a7feddca271a (patch)
tree8be34eea1342aa01c46609f55d78cb4fe64d2352 /compiler/rustc_middle/src/ty/impls_ty.rs
parent304b7f801bab31233680879ca4fb6eb294706a59 (diff)
downloadrust-f76f128dc9dea86f52a40d465430a7feddca271a.tar.gz
rust-f76f128dc9dea86f52a40d465430a7feddca271a.zip
const-eval interning: accpt interior mutable pointers in final value (but keep rejecting mutable references)
Diffstat (limited to 'compiler/rustc_middle/src/ty/impls_ty.rs')
-rw-r--r--compiler/rustc_middle/src/ty/impls_ty.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/ty/impls_ty.rs b/compiler/rustc_middle/src/ty/impls_ty.rs
index b5b7b8bcfef..5f6305bb48a 100644
--- a/compiler/rustc_middle/src/ty/impls_ty.rs
+++ b/compiler/rustc_middle/src/ty/impls_ty.rs
@@ -75,11 +75,9 @@ impl<'a> HashStable<StableHashingContext<'a>> for mir::interpret::AllocId {
     }
 }
 
-// CtfeProvenance is an AllocId and a bool.
 impl<'a> HashStable<StableHashingContext<'a>> for mir::interpret::CtfeProvenance {
     fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) {
-        self.alloc_id().hash_stable(hcx, hasher);
-        self.immutable().hash_stable(hcx, hasher);
+        self.into_parts().hash_stable(hcx, hasher);
     }
 }