@@ -2252,7 +2252,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
2252
2252
#[ instrument( level = "debug" , skip( self , parent_scope) ) ]
2253
2253
pub ( crate ) fn make_path_suggestion (
2254
2254
& mut self ,
2255
- span : Span ,
2256
2255
mut path : Vec < Segment > ,
2257
2256
parent_scope : & ParentScope < ' ra > ,
2258
2257
) -> Option < ( Vec < Segment > , Option < String > ) > {
@@ -2480,7 +2479,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
2480
2479
// or `use a::{b, c, d}};`
2481
2480
// ^^^^^^^^^^^
2482
2481
let ( has_nested, after_crate_name) =
2483
- find_span_immediately_after_crate_name ( self . tcx . sess , module_name , import. use_span ) ;
2482
+ find_span_immediately_after_crate_name ( self . tcx . sess , import. use_span ) ;
2484
2483
debug ! ( has_nested, ?after_crate_name) ;
2485
2484
2486
2485
let source_map = self . tcx . sess . source_map ( ) ;
@@ -2687,11 +2686,7 @@ fn extend_span_to_previous_binding(sess: &Session, binding_span: Span) -> Option
2687
2686
/// // ^^^^^^^^^^^^^^^ -- true
2688
2687
/// ```
2689
2688
#[ instrument( level = "debug" , skip( sess) ) ]
2690
- fn find_span_immediately_after_crate_name (
2691
- sess : & Session ,
2692
- module_name : Symbol ,
2693
- use_span : Span ,
2694
- ) -> ( bool , Span ) {
2689
+ fn find_span_immediately_after_crate_name ( sess : & Session , use_span : Span ) -> ( bool , Span ) {
2695
2690
let source_map = sess. source_map ( ) ;
2696
2691
2697
2692
// Using `use issue_59764::foo::{baz, makro};` as an example throughout..
0 commit comments