mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Generalize disallowing of definition renaming
This commit is contained in:
parent
7ae70a06ce
commit
43edb51b21
2 changed files with 13 additions and 9 deletions
|
@ -2639,7 +2639,7 @@ use qux as frob;
|
|||
=======
|
||||
|
||||
#[test]
|
||||
fn disallow_renaming_for_non_local_struct() {
|
||||
fn disallow_renaming_for_non_local_definition() {
|
||||
check(
|
||||
"Baz",
|
||||
r#"
|
||||
|
@ -2648,7 +2648,7 @@ pub struct S$0;
|
|||
//- /main.rs crate:main deps:lib new_source_root:local
|
||||
use lib::S;
|
||||
"#,
|
||||
"error: Cannot rename a non-local struct.",
|
||||
"error: Cannot rename a non-local definition.",
|
||||
);
|
||||
}
|
||||
>>>>>>> 948d9f274 (Disallow renaming of non-local structs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue