about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/const_prop.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-04-05 13:31:51 -0400
committerRalf Jung <post@ralfj.de>2022-04-05 13:31:51 -0400
commitfcdfc3e1c1c3da9f765364f73d306bf5d4fd6a63 (patch)
tree69d27512e32df3377f200229093191c9989cb84f /compiler/rustc_mir_transform/src/const_prop.rs
parent634770c0a7f8598164ab825cfe419cc8b03c36e5 (diff)
downloadrust-fcdfc3e1c1c3da9f765364f73d306bf5d4fd6a63.tar.gz
rust-fcdfc3e1c1c3da9f765364f73d306bf5d4fd6a63.zip
interp: pass TyCtxt to Machine methods that do not take InterpCx
Diffstat (limited to 'compiler/rustc_mir_transform/src/const_prop.rs')
-rw-r--r--compiler/rustc_mir_transform/src/const_prop.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_mir_transform/src/const_prop.rs b/compiler/rustc_mir_transform/src/const_prop.rs
index 49ebdd30254..a342aeed905 100644
--- a/compiler/rustc_mir_transform/src/const_prop.rs
+++ b/compiler/rustc_mir_transform/src/const_prop.rs
@@ -265,6 +265,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
     }
 
     fn before_access_global(
+        _tcx: TyCtxt<'tcx>,
         _machine: &Self,
         _alloc_id: AllocId,
         alloc: ConstAllocation<'tcx, Self::PointerTag, Self::AllocExtra>,