File tree 1 file changed +19
-2
lines changed 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ pub(crate) fn rename(
138
138
return rename_to_self ( & sema, local) ;
139
139
}
140
140
}
141
- def. rename ( & sema, new_name, rename_external )
141
+ def. rename ( & sema, new_name)
142
142
} )
143
143
. collect ( ) ,
144
144
} ;
@@ -2695,9 +2695,26 @@ use qux as frob;
2695
2695
//- /lib.rs crate:lib new_source_root:library
2696
2696
pub struct S;
2697
2697
//- /main.rs crate:main deps:lib new_source_root:local
2698
- use lib::S$0;
2698
+ use lib::S;
2699
+ fn main() { let _: S$0; }
2699
2700
"# ,
2700
2701
"error: Cannot rename a non-local definition" ,
2702
+ false ,
2703
+ ) ;
2704
+
2705
+ check (
2706
+ "Baz" ,
2707
+ r#"
2708
+ //- /lib.rs crate:lib new_source_root:library
2709
+ pub struct S;
2710
+ //- /main.rs crate:main deps:lib new_source_root:local
2711
+ use lib::S;
2712
+ fn main() { let _: S$0; }
2713
+ "# ,
2714
+ r#"
2715
+ use lib::Baz;
2716
+ fn main() { let _: Baz; }
2717
+ "# ,
2701
2718
) ;
2702
2719
}
2703
2720
You can’t perform that action at this time.
0 commit comments