@@ -17,6 +17,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
1717use rustc_data_structures:: static_assert_size;
1818use rustc_middle:: {
1919 mir,
20+ query:: TyCtxtAt ,
2021 ty:: {
2122 self ,
2223 layout:: { LayoutCx , LayoutError , LayoutOf , TyAndLayout } ,
@@ -1251,7 +1252,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
12511252
12521253 #[ inline( always) ]
12531254 fn before_memory_read (
1254- _tcx : TyCtxt < ' tcx > ,
1255+ _tcx : TyCtxtAt < ' tcx > ,
12551256 machine : & Self ,
12561257 alloc_extra : & AllocExtra < ' tcx > ,
12571258 ( alloc_id, prov_extra) : ( AllocId , Self :: ProvenanceExtra ) ,
@@ -1271,7 +1272,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
12711272
12721273 #[ inline( always) ]
12731274 fn before_memory_write (
1274- _tcx : TyCtxt < ' tcx > ,
1275+ _tcx : TyCtxtAt < ' tcx > ,
12751276 machine : & mut Self ,
12761277 alloc_extra : & mut AllocExtra < ' tcx > ,
12771278 ( alloc_id, prov_extra) : ( AllocId , Self :: ProvenanceExtra ) ,
@@ -1291,7 +1292,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
12911292
12921293 #[ inline( always) ]
12931294 fn before_memory_deallocation (
1294- _tcx : TyCtxt < ' tcx > ,
1295+ _tcx : TyCtxtAt < ' tcx > ,
12951296 machine : & mut Self ,
12961297 alloc_extra : & mut AllocExtra < ' tcx > ,
12971298 ( alloc_id, prove_extra) : ( AllocId , Self :: ProvenanceExtra ) ,
0 commit comments