@@ -33,7 +33,7 @@ type Res = def::Res<NodeId>;
3333
3434/// Contains data for specific kinds of imports.
3535#[ derive( Clone ) ]
36- pub enum ImportKind < ' a > {
36+ pub ( crate ) enum ImportKind < ' a > {
3737 Single {
3838 /// `source` in `use prefix::source as target`.
3939 source : Ident ,
@@ -157,11 +157,11 @@ pub(crate) struct Import<'a> {
157157}
158158
159159impl < ' a > Import < ' a > {
160- pub fn is_glob ( & self ) -> bool {
160+ pub ( crate ) fn is_glob ( & self ) -> bool {
161161 matches ! ( self . kind, ImportKind :: Glob { .. } )
162162 }
163163
164- pub fn is_nested ( & self ) -> bool {
164+ pub ( crate ) fn is_nested ( & self ) -> bool {
165165 match self . kind {
166166 ImportKind :: Single { nested, .. } => nested,
167167 _ => false ,
@@ -405,7 +405,7 @@ struct UnresolvedImportError {
405405 candidates : Option < Vec < ImportSuggestion > > ,
406406}
407407
408- pub struct ImportResolver < ' a , ' b > {
408+ pub ( crate ) struct ImportResolver < ' a , ' b > {
409409 pub r : & ' a mut Resolver < ' b > ,
410410}
411411
@@ -420,7 +420,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
420420
421421 /// Resolves all imports for the crate. This method performs the fixed-
422422 /// point iteration.
423- pub fn resolve_imports ( & mut self ) {
423+ pub ( crate ) fn resolve_imports ( & mut self ) {
424424 let mut prev_num_indeterminates = self . r . indeterminate_imports . len ( ) + 1 ;
425425 while self . r . indeterminate_imports . len ( ) < prev_num_indeterminates {
426426 prev_num_indeterminates = self . r . indeterminate_imports . len ( ) ;
@@ -433,7 +433,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
433433 }
434434 }
435435
436- pub fn finalize_imports ( & mut self ) {
436+ pub ( crate ) fn finalize_imports ( & mut self ) {
437437 for module in self . r . arenas . local_modules ( ) . iter ( ) {
438438 self . finalize_resolutions_in ( module) ;
439439 }
0 commit comments