@@ -8,7 +8,7 @@ use crate::errors::{
88 ItemsInTraitsAreNotImportable ,
99} ;
1010use crate :: Determinacy :: { self , * } ;
11- use crate :: { fluent_generated as fluent , Namespace :: * } ;
11+ use crate :: Namespace :: * ;
1212use crate :: { module_to_string, names_to_string, ImportSuggestion } ;
1313use crate :: { AmbiguityKind , BindingKey , ModuleKind , ResolutionError , Resolver , Segment } ;
1414use crate :: { Finalize , Module , ModuleOrUniformRoot , ParentScope , PerNS , ScopeSet } ;
@@ -965,7 +965,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
965965 id,
966966 ..
967967 } => ( source, target, source_bindings, target_bindings, type_ns_only, id) ,
968- ImportKind :: Glob { is_prelude, ref max_vis, id } => {
968+ ImportKind :: Glob { is_prelude, ref max_vis, .. } => {
969969 if import. module_path . len ( ) <= 1 {
970970 // HACK(eddyb) `lint_if_path_starts_with_module` needs at least
971971 // 2 segments, so the `resolve_path` above won't trigger it.
@@ -992,7 +992,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
992992 && let Some ( max_vis) = max_vis. get ( )
993993 && !max_vis. is_at_least ( import. expect_vis ( ) , self . tcx )
994994 {
995- self . lint_buffer . buffer_lint ( UNUSED_IMPORTS , id , import. span , fluent :: resolve_glob_import_doesnt_reexport ) ;
995+ self . no_reexports_imports . push ( import) ;
996996 }
997997 return None ;
998998 }
0 commit comments