@@ -958,6 +958,8 @@ pub struct Resolver<'a, 'tcx> {
958958 /// All non-determined imports.
959959 indeterminate_imports : Vec < Import < ' a > > ,
960960
961+ insufficient_vis : Vec < ( LocalDefId , ty:: Visibility ) > ,
962+
961963 // Spans for local variables found during pattern resolution.
962964 // Used for suggestions during error reporting.
963965 pat_span_map : NodeMap < Span > ,
@@ -1340,6 +1342,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
13401342 determined_imports : Vec :: new ( ) ,
13411343 indeterminate_imports : Vec :: new ( ) ,
13421344
1345+ insufficient_vis : Vec :: new ( ) ,
1346+
13431347 pat_span_map : Default :: default ( ) ,
13441348 partial_res_map : Default :: default ( ) ,
13451349 import_res_map : Default :: default ( ) ,
@@ -1525,6 +1529,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
15251529 doc_link_resolutions : self . doc_link_resolutions ,
15261530 doc_link_traits_in_scope : self . doc_link_traits_in_scope ,
15271531 all_macro_rules : self . all_macro_rules ,
1532+ insufficient_vis : self . insufficient_vis ,
15281533 } ;
15291534 let ast_lowering = ty:: ResolverAstLowering {
15301535 legacy_const_generic_args : self . legacy_const_generic_args ,
0 commit comments