Merge #9400
9400: fix: Fix renaming associated trait items with colliding names r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user