@@ -33,7 +33,7 @@ type Res = def::Res<NodeId>;
33
33
34
34
/// Contains data for specific kinds of imports.
35
35
#[ derive( Clone ) ]
36
- pub enum ImportKind < ' a > {
36
+ pub ( crate ) enum ImportKind < ' a > {
37
37
Single {
38
38
/// `source` in `use prefix::source as target`.
39
39
source : Ident ,
@@ -157,11 +157,11 @@ pub(crate) struct Import<'a> {
157
157
}
158
158
159
159
impl < ' a > Import < ' a > {
160
- pub fn is_glob ( & self ) -> bool {
160
+ pub ( crate ) fn is_glob ( & self ) -> bool {
161
161
matches ! ( self . kind, ImportKind :: Glob { .. } )
162
162
}
163
163
164
- pub fn is_nested ( & self ) -> bool {
164
+ pub ( crate ) fn is_nested ( & self ) -> bool {
165
165
match self . kind {
166
166
ImportKind :: Single { nested, .. } => nested,
167
167
_ => false ,
@@ -405,7 +405,7 @@ struct UnresolvedImportError {
405
405
candidates : Option < Vec < ImportSuggestion > > ,
406
406
}
407
407
408
- pub struct ImportResolver < ' a , ' b > {
408
+ pub ( crate ) struct ImportResolver < ' a , ' b > {
409
409
pub r : & ' a mut Resolver < ' b > ,
410
410
}
411
411
@@ -420,7 +420,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
420
420
421
421
/// Resolves all imports for the crate. This method performs the fixed-
422
422
/// point iteration.
423
- pub fn resolve_imports ( & mut self ) {
423
+ pub ( crate ) fn resolve_imports ( & mut self ) {
424
424
let mut prev_num_indeterminates = self . r . indeterminate_imports . len ( ) + 1 ;
425
425
while self . r . indeterminate_imports . len ( ) < prev_num_indeterminates {
426
426
prev_num_indeterminates = self . r . indeterminate_imports . len ( ) ;
@@ -433,7 +433,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
433
433
}
434
434
}
435
435
436
- pub fn finalize_imports ( & mut self ) {
436
+ pub ( crate ) fn finalize_imports ( & mut self ) {
437
437
for module in self . r . arenas . local_modules ( ) . iter ( ) {
438
438
self . finalize_resolutions_in ( module) ;
439
439
}
0 commit comments