@@ -417,7 +417,7 @@ impl<'a> Resolver<'a> {
417417}
418418
419419impl < ' 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.
421421 pub ( crate ) fn make_path_suggestion (
422422 & mut self ,
423423 span : Span ,
@@ -431,7 +431,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
431431 // On 2015 `{{root}}` is usually added implicitly.
432432 ( Some ( fst) , Some ( snd) ) if fst. ident . name == keywords:: PathRoot . name ( ) &&
433433 !snd. ident . is_path_segment_keyword ( ) => { }
434- // `ident::...` on 2018
434+ // `ident::...` on 2018.
435435 ( Some ( fst) , _) if fst. ident . span . rust_2018 ( ) &&
436436 !fst. ident . is_path_segment_keyword ( ) => {
437437 // Insert a placeholder that's later replaced by `self`/`super`/etc.
@@ -470,7 +470,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
470470 }
471471 }
472472
473- /// Suggest a missing `crate::` if that resolves to an correct module.
473+ /// Suggests a missing `crate::` if that resolves to an correct module.
474474 ///
475475 /// ```
476476 /// |
@@ -501,7 +501,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
501501 }
502502 }
503503
504- /// Suggest a missing `super::` if that resolves to an correct module.
504+ /// Suggests a missing `super::` if that resolves to an correct module.
505505 ///
506506 /// ```
507507 /// |
@@ -525,7 +525,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
525525 }
526526 }
527527
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.
529529 ///
530530 /// ```
531531 /// |
@@ -546,7 +546,7 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
546546 }
547547
548548 // 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
550550 // 2) `std` suggestions before `core` suggestions.
551551 let mut extern_crate_names =
552552 self . resolver . extern_prelude . iter ( ) . map ( |( ident, _) | ident. name ) . collect :: < Vec < _ > > ( ) ;
0 commit comments