@@ -31,7 +31,7 @@ use rustc_ast as ast;
3131use rustc_ast:: expand:: typetree:: { FncTree , Kind , Type , TypeTree } ;
3232use rustc_ast:: node_id:: NodeMap ;
3333pub use rustc_ast_ir:: { Movability , Mutability , try_visit} ;
34- use rustc_data_structures:: fx:: { FxHashSet , FxIndexMap , FxIndexSet } ;
34+ use rustc_data_structures:: fx:: { FxIndexMap , FxIndexSet } ;
3535use rustc_data_structures:: intern:: Interned ;
3636use rustc_data_structures:: stable_hash:: { StableHash , StableHashCtxt , StableHasher } ;
3737use rustc_data_structures:: steal:: Steal ;
@@ -207,6 +207,9 @@ pub struct ResolverGlobalCtxt {
207207#[ derive( Debug ) ]
208208pub struct PerOwnerResolverData {
209209 pub node_id_to_def_id : NodeMap < LocalDefId > = Default :: default ( ) ,
210+ /// Whether lifetime elision was successful.
211+ pub lifetime_elision_allowed : bool = false,
212+
210213 /// The id of the owner
211214 pub id : ast:: NodeId ,
212215 /// The `DefId` of the owner, can't be found in `node_id_to_def_id`.
@@ -239,8 +242,6 @@ pub struct ResolverAstLowering<'tcx> {
239242 pub owners : NodeMap < PerOwnerResolverData > ,
240243
241244 pub trait_map : NodeMap < & ' tcx [ hir:: TraitCandidate < ' tcx > ] > ,
242- /// List functions and methods for which lifetime elision was successful.
243- pub lifetime_elision_allowed : FxHashSet < ast:: NodeId > ,
244245
245246 /// Lints that were emitted by the resolver and early lints.
246247 pub lint_buffer : Steal < LintBuffer > ,
0 commit comments