diff options
| author | Ralf Jung <post@ralfj.de> | 2022-04-05 13:31:51 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-04-05 13:31:51 -0400 |
| commit | fcdfc3e1c1c3da9f765364f73d306bf5d4fd6a63 (patch) | |
| tree | 69d27512e32df3377f200229093191c9989cb84f /compiler/rustc_const_eval/src/const_eval | |
| parent | 634770c0a7f8598164ab825cfe419cc8b03c36e5 (diff) | |
| download | rust-fcdfc3e1c1c3da9f765364f73d306bf5d4fd6a63.tar.gz rust-fcdfc3e1c1c3da9f765364f73d306bf5d4fd6a63.zip | |
interp: pass TyCtxt to Machine methods that do not take InterpCx
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/const_eval/machine.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs index 5aae4a90960..c44e27fc4a0 100644 --- a/compiler/rustc_const_eval/src/const_eval/machine.rs +++ b/compiler/rustc_const_eval/src/const_eval/machine.rs @@ -1,6 +1,6 @@ use rustc_hir::def::DefKind; use rustc_middle::mir; -use rustc_middle::ty::{self, Ty}; +use rustc_middle::ty::{self, Ty, TyCtxt}; use std::borrow::Borrow; use std::collections::hash_map::Entry; use std::hash::Hash; @@ -471,6 +471,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir, } fn before_access_global( + _tcx: TyCtxt<'tcx>, machine: &Self, alloc_id: AllocId, alloc: ConstAllocation<'tcx>, |
