@@ -2252,7 +2252,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
22522252 #[ instrument( level = "debug" , skip( self , parent_scope) ) ]
22532253 pub ( crate ) fn make_path_suggestion (
22542254 & mut self ,
2255- span : Span ,
22562255 mut path : Vec < Segment > ,
22572256 parent_scope : & ParentScope < ' ra > ,
22582257 ) -> Option < ( Vec < Segment > , Option < String > ) > {
@@ -2480,7 +2479,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
24802479 // or `use a::{b, c, d}};`
24812480 // ^^^^^^^^^^^
24822481 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 ) ;
24842483 debug ! ( has_nested, ?after_crate_name) ;
24852484
24862485 let source_map = self . tcx . sess . source_map ( ) ;
@@ -2687,11 +2686,7 @@ fn extend_span_to_previous_binding(sess: &Session, binding_span: Span) -> Option
26872686/// // ^^^^^^^^^^^^^^^ -- true
26882687/// ```
26892688#[ 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 ) {
26952690 let source_map = sess. source_map ( ) ;
26962691
26972692 // Using `use issue_59764::foo::{baz, makro};` as an example throughout..
0 commit comments