mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix renaming associated trait items with colliding names
This commit is contained in:
parent
9239943b84
commit
942eeb2f55
2 changed files with 22 additions and 1 deletions
|
@ -1716,6 +1716,25 @@ impl Foo for () {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rename_trait_method_prefix_of_second() {
|
||||
check(
|
||||
"qux",
|
||||
r#"
|
||||
trait Foo {
|
||||
fn foo$0() {}
|
||||
fn foobar() {}
|
||||
}
|
||||
"#,
|
||||
r#"
|
||||
trait Foo {
|
||||
fn qux() {}
|
||||
fn foobar() {}
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rename_trait_const() {
|
||||
let res = r"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue