diff options
| author | Ralf Jung <post@ralfj.de> | 2022-11-14 13:37:08 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-11-14 18:26:40 +0100 |
| commit | 68af46c1121d14a3d89ec56cd4ed2fef829bae75 (patch) | |
| tree | 09f30c1efe081681e66768af7e1f0548a6e667d9 /compiler/rustc_const_eval/src/interpret | |
| parent | 03b25989246be62fe1c489db5f381c1ac36a46d5 (diff) | |
| download | rust-68af46c1121d14a3d89ec56cd4ed2fef829bae75.tar.gz rust-68af46c1121d14a3d89ec56cd4ed2fef829bae75.zip | |
assert that we are (de)seiralizing ProvenanceMap correctly
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/memory.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs index 4eda9882da3..fdd0e444010 100644 --- a/compiler/rustc_const_eval/src/interpret/memory.rs +++ b/compiler/rustc_const_eval/src/interpret/memory.rs @@ -112,7 +112,7 @@ pub struct Memory<'mir, 'tcx, M: Machine<'mir, 'tcx>> { /// A reference to some allocation that was already bounds-checked for the given region /// and had the on-access machine hooks run. #[derive(Copy, Clone)] -pub struct AllocRef<'a, 'tcx, Prov, Extra> { +pub struct AllocRef<'a, 'tcx, Prov: Provenance, Extra> { alloc: &'a Allocation<Prov, Extra>, range: AllocRange, tcx: TyCtxt<'tcx>, @@ -120,7 +120,7 @@ pub struct AllocRef<'a, 'tcx, Prov, Extra> { } /// A reference to some allocation that was already bounds-checked for the given region /// and had the on-access machine hooks run. -pub struct AllocRefMut<'a, 'tcx, Prov, Extra> { +pub struct AllocRefMut<'a, 'tcx, Prov: Provenance, Extra> { alloc: &'a mut Allocation<Prov, Extra>, range: AllocRange, tcx: TyCtxt<'tcx>, |
