diff options
| author | Ralf Jung <post@ralfj.de> | 2024-08-02 15:34:59 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-09-10 10:26:16 +0200 |
| commit | f76f128dc9dea86f52a40d465430a7feddca271a (patch) | |
| tree | 8be34eea1342aa01c46609f55d78cb4fe64d2352 /compiler/rustc_middle/src/ty/impls_ty.rs | |
| parent | 304b7f801bab31233680879ca4fb6eb294706a59 (diff) | |
| download | rust-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.rs | 4 |
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); } } |
