@@ -200,7 +200,7 @@ pub struct Map<'hir> {
200
200
201
201
map : HirEntryMap < ' hir > ,
202
202
203
- definitions : & ' hir Definitions ,
203
+ definitions : Definitions ,
204
204
205
205
/// The reverse mapping of `node_to_hir_id`.
206
206
hir_to_node_id : FxHashMap < HirId , NodeId > ,
@@ -267,8 +267,8 @@ impl<'hir> Map<'hir> {
267
267
}
268
268
269
269
#[ inline]
270
- pub fn definitions ( & self ) -> & ' hir Definitions {
271
- self . definitions
270
+ pub fn definitions ( & self ) -> & Definitions {
271
+ & self . definitions
272
272
}
273
273
274
274
pub fn def_key ( & self , def_id : DefId ) -> DefKey {
@@ -1251,7 +1251,7 @@ impl Named for ImplItem { fn name(&self) -> Name { self.ident.name } }
1251
1251
pub fn map_crate < ' hir > ( sess : & crate :: session:: Session ,
1252
1252
cstore : & CrateStoreDyn ,
1253
1253
forest : & ' hir Forest ,
1254
- definitions : & ' hir Definitions )
1254
+ definitions : Definitions )
1255
1255
-> Map < ' hir > {
1256
1256
let _prof_timer = sess. prof . generic_activity ( "build_hir_map" ) ;
1257
1257
@@ -1260,7 +1260,7 @@ pub fn map_crate<'hir>(sess: &crate::session::Session,
1260
1260
. map ( |( node_id, & hir_id) | ( hir_id, node_id) ) . collect ( ) ;
1261
1261
1262
1262
let ( map, crate_hash) = {
1263
- let hcx = crate :: ich:: StableHashingContext :: new ( sess, & forest. krate , definitions, cstore) ;
1263
+ let hcx = crate :: ich:: StableHashingContext :: new ( sess, & forest. krate , & definitions, cstore) ;
1264
1264
1265
1265
let mut collector = NodeCollector :: root ( sess,
1266
1266
& forest. krate ,
0 commit comments