File tree 1 file changed +18
-2
lines changed
1 file changed +18
-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,10 +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" ,
2701
2702
) ;
2703
+
2704
+ check (
2705
+ "Baz" ,
2706
+ r#"
2707
+ //- /lib.rs crate:lib new_source_root:library
2708
+ pub struct S;
2709
+ //- /main.rs crate:main deps:lib new_source_root:local
2710
+ use lib::S;
2711
+ fn main() { let _: S$0; }
2712
+ "# ,
2713
+ r#"
2714
+ use lib::Baz;
2715
+ fn main() { let _: Baz; }
2716
+ "# ,
2717
+ ) ;
2702
2718
}
2703
2719
2704
2720
#[ test]
You can’t perform that action at this time.
0 commit comments