@@ -60,7 +60,7 @@ use rustc_span::{Span, DUMMY_SP};
6060
6161use smallvec:: { smallvec, SmallVec } ;
6262use std:: cell:: { Cell , RefCell } ;
63- use std:: collections:: BTreeSet ;
63+ use std:: collections:: { BTreeMap , BTreeSet } ;
6464use std:: ops:: ControlFlow ;
6565use std:: { cmp, fmt, iter, ptr} ;
6666use tracing:: debug;
@@ -1034,6 +1034,7 @@ pub struct Resolver<'a> {
10341034 item_generics_num_lifetimes : FxHashMap < LocalDefId , usize > ,
10351035
10361036 main_def : Option < MainDefinition > ,
1037+ trait_impls : BTreeMap < DefId , Vec < LocalDefId > > ,
10371038}
10381039
10391040/// Nothing really interesting here; it just provides memory for the rest of the crate.
@@ -1398,6 +1399,7 @@ impl<'a> Resolver<'a> {
13981399 legacy_const_generic_args : Default :: default ( ) ,
13991400 item_generics_num_lifetimes : Default :: default ( ) ,
14001401 main_def : Default :: default ( ) ,
1402+ trait_impls : Default :: default ( ) ,
14011403 } ;
14021404
14031405 let root_parent_scope = ParentScope :: module ( graph_root, & resolver) ;
@@ -1455,6 +1457,7 @@ impl<'a> Resolver<'a> {
14551457 . map ( |( ident, entry) | ( ident. name , entry. introduced_by_item ) )
14561458 . collect ( ) ,
14571459 main_def,
1460+ trait_impls : self . trait_impls ,
14581461 }
14591462 }
14601463
@@ -1474,6 +1477,7 @@ impl<'a> Resolver<'a> {
14741477 . map ( |( ident, entry) | ( ident. name , entry. introduced_by_item ) )
14751478 . collect ( ) ,
14761479 main_def : self . main_def . clone ( ) ,
1480+ trait_impls : self . trait_impls . clone ( ) ,
14771481 }
14781482 }
14791483
0 commit comments