@@ -66,7 +66,7 @@ use crate::metadata::ModChild;
66
66
use crate :: middle:: codegen_fn_attrs:: CodegenFnAttrs ;
67
67
use crate :: middle:: { resolve_bound_vars, stability} ;
68
68
use crate :: mir:: interpret:: { self , Allocation , ConstAllocation } ;
69
- use crate :: mir:: { Body , Local , Place , PlaceElem , ProjectionKind , Promoted } ;
69
+ use crate :: mir:: { Body , ConstValue , Local , Place , PlaceElem , ProjectionKind , Promoted } ;
70
70
use crate :: query:: plumbing:: QuerySystem ;
71
71
use crate :: query:: { IntoQueryParam , LocalCrate , Providers , TyCtxtAt } ;
72
72
use crate :: thir:: Thir ;
@@ -1297,6 +1297,8 @@ pub struct GlobalCtxt<'tcx> {
1297
1297
/// Stores memory for globals (statics/consts).
1298
1298
pub ( crate ) alloc_map : Lock < interpret:: AllocMap < ' tcx > > ,
1299
1299
1300
+ pub caller_location_cache : Lock < FxHashMap < ( Symbol , u32 , u32 ) , ConstValue < ' tcx > > > ,
1301
+
1300
1302
current_gcx : CurrentGcx ,
1301
1303
}
1302
1304
@@ -1527,6 +1529,7 @@ impl<'tcx> TyCtxt<'tcx> {
1527
1529
canonical_param_env_cache : Default :: default ( ) ,
1528
1530
data_layout,
1529
1531
alloc_map : Lock :: new ( interpret:: AllocMap :: new ( ) ) ,
1532
+ caller_location_cache : Default :: default ( ) ,
1530
1533
current_gcx,
1531
1534
}
1532
1535
}
0 commit comments