@@ -17,6 +17,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
17
17
use rustc_data_structures:: static_assert_size;
18
18
use rustc_middle:: {
19
19
mir,
20
+ query:: TyCtxtAt ,
20
21
ty:: {
21
22
self ,
22
23
layout:: { LayoutCx , LayoutError , LayoutOf , TyAndLayout } ,
@@ -1251,7 +1252,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
1251
1252
1252
1253
#[ inline( always) ]
1253
1254
fn before_memory_read (
1254
- _tcx : TyCtxt < ' tcx > ,
1255
+ _tcx : TyCtxtAt < ' tcx > ,
1255
1256
machine : & Self ,
1256
1257
alloc_extra : & AllocExtra < ' tcx > ,
1257
1258
( alloc_id, prov_extra) : ( AllocId , Self :: ProvenanceExtra ) ,
@@ -1271,7 +1272,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
1271
1272
1272
1273
#[ inline( always) ]
1273
1274
fn before_memory_write (
1274
- _tcx : TyCtxt < ' tcx > ,
1275
+ _tcx : TyCtxtAt < ' tcx > ,
1275
1276
machine : & mut Self ,
1276
1277
alloc_extra : & mut AllocExtra < ' tcx > ,
1277
1278
( alloc_id, prov_extra) : ( AllocId , Self :: ProvenanceExtra ) ,
@@ -1291,7 +1292,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
1291
1292
1292
1293
#[ inline( always) ]
1293
1294
fn before_memory_deallocation (
1294
- _tcx : TyCtxt < ' tcx > ,
1295
+ _tcx : TyCtxtAt < ' tcx > ,
1295
1296
machine : & mut Self ,
1296
1297
alloc_extra : & mut AllocExtra < ' tcx > ,
1297
1298
( alloc_id, prove_extra) : ( AllocId , Self :: ProvenanceExtra ) ,
0 commit comments