@@ -958,6 +958,8 @@ pub struct Resolver<'a, 'tcx> {
958
958
/// All non-determined imports.
959
959
indeterminate_imports : Vec < Import < ' a > > ,
960
960
961
+ insufficient_vis : Vec < ( LocalDefId , ty:: Visibility ) > ,
962
+
961
963
// Spans for local variables found during pattern resolution.
962
964
// Used for suggestions during error reporting.
963
965
pat_span_map : NodeMap < Span > ,
@@ -1340,6 +1342,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
1340
1342
determined_imports : Vec :: new ( ) ,
1341
1343
indeterminate_imports : Vec :: new ( ) ,
1342
1344
1345
+ insufficient_vis : Vec :: new ( ) ,
1346
+
1343
1347
pat_span_map : Default :: default ( ) ,
1344
1348
partial_res_map : Default :: default ( ) ,
1345
1349
import_res_map : Default :: default ( ) ,
@@ -1525,6 +1529,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
1525
1529
doc_link_resolutions : self . doc_link_resolutions ,
1526
1530
doc_link_traits_in_scope : self . doc_link_traits_in_scope ,
1527
1531
all_macro_rules : self . all_macro_rules ,
1532
+ insufficient_vis : self . insufficient_vis ,
1528
1533
} ;
1529
1534
let ast_lowering = ty:: ResolverAstLowering {
1530
1535
legacy_const_generic_args : self . legacy_const_generic_args ,
0 commit comments