@@ -417,7 +417,7 @@ impl<'a> Resolver<'a> {
417
417
}
418
418
419
419
impl < ' a , ' b : ' a > ImportResolver < ' a , ' b > {
420
- /// Add suggestions for a path that cannot be resolved.
420
+ /// Adds suggestions for a path that cannot be resolved.
421
421
pub ( crate ) fn make_path_suggestion (
422
422
& mut self ,
423
423
span : Span ,
@@ -431,7 +431,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
431
431
// On 2015 `{{root}}` is usually added implicitly.
432
432
( Some ( fst) , Some ( snd) ) if fst. ident . name == keywords:: PathRoot . name ( ) &&
433
433
!snd. ident . is_path_segment_keyword ( ) => { }
434
- // `ident::...` on 2018
434
+ // `ident::...` on 2018.
435
435
( Some ( fst) , _) if fst. ident . span . rust_2018 ( ) &&
436
436
!fst. ident . is_path_segment_keyword ( ) => {
437
437
// Insert a placeholder that's later replaced by `self`/`super`/etc.
@@ -470,7 +470,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
470
470
}
471
471
}
472
472
473
- /// Suggest a missing `crate::` if that resolves to an correct module.
473
+ /// Suggests a missing `crate::` if that resolves to an correct module.
474
474
///
475
475
/// ```
476
476
/// |
@@ -501,7 +501,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
501
501
}
502
502
}
503
503
504
- /// Suggest a missing `super::` if that resolves to an correct module.
504
+ /// Suggests a missing `super::` if that resolves to an correct module.
505
505
///
506
506
/// ```
507
507
/// |
@@ -525,7 +525,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
525
525
}
526
526
}
527
527
528
- /// Suggest a missing external crate name if that resolves to an correct module.
528
+ /// Suggests a missing external crate name if that resolves to an correct module.
529
529
///
530
530
/// ```
531
531
/// |
@@ -546,7 +546,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
546
546
}
547
547
548
548
// Sort extern crate names in reverse order to get
549
- // 1) some consistent ordering for emitted dignostics and
549
+ // 1) some consistent ordering for emitted dignostics, and
550
550
// 2) `std` suggestions before `core` suggestions.
551
551
let mut extern_crate_names =
552
552
self . resolver . extern_prelude . iter ( ) . map ( |( ident, _) | ident. name ) . collect :: < Vec < _ > > ( ) ;
0 commit comments