@@ -967,7 +967,7 @@ pub struct GlobalCtxt<'tcx> {
967
967
export_map : ExportMap < LocalDefId > ,
968
968
969
969
pub ( crate ) untracked_crate : & ' tcx hir:: Crate < ' tcx > ,
970
- pub ( crate ) definitions : & ' tcx Definitions ,
970
+ pub ( crate ) definitions : Definitions ,
971
971
972
972
/// This provides access to the incremental compilation on-disk cache for query results.
973
973
/// Do not access this directly. It is only meant to be used by
@@ -1163,7 +1163,7 @@ impl<'tcx> TyCtxt<'tcx> {
1163
1163
glob_map : resolutions. glob_map ,
1164
1164
extern_prelude : resolutions. extern_prelude ,
1165
1165
untracked_crate : krate,
1166
- definitions : arena . alloc ( resolutions. definitions ) ,
1166
+ definitions : resolutions. definitions ,
1167
1167
on_disk_cache,
1168
1168
queries,
1169
1169
query_caches : query:: QueryCaches :: default ( ) ,
@@ -1319,14 +1319,14 @@ impl<'tcx> TyCtxt<'tcx> {
1319
1319
pub fn create_stable_hashing_context ( self ) -> StableHashingContext < ' tcx > {
1320
1320
let krate = self . gcx . untracked_crate ;
1321
1321
1322
- StableHashingContext :: new ( self . sess , krate, self . definitions , & * self . cstore )
1322
+ StableHashingContext :: new ( self . sess , krate, & self . definitions , & * self . cstore )
1323
1323
}
1324
1324
1325
1325
#[ inline( always) ]
1326
1326
pub fn create_no_span_stable_hashing_context ( self ) -> StableHashingContext < ' tcx > {
1327
1327
let krate = self . gcx . untracked_crate ;
1328
1328
1329
- StableHashingContext :: ignore_spans ( self . sess , krate, self . definitions , & * self . cstore )
1329
+ StableHashingContext :: ignore_spans ( self . sess , krate, & self . definitions , & * self . cstore )
1330
1330
}
1331
1331
1332
1332
pub fn serialize_query_result_cache ( self , encoder : & mut FileEncoder ) -> FileEncodeResult {
0 commit comments