Skip to content

Commit f3bad7f

Browse files
committed
do away with _Self and TraitName and check generic params for rustc_on_unimplemented
1 parent 303c4ec commit f3bad7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/duplicated_attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn foo() {}
2121
fn bar() {}
2222

2323
// No warning:
24-
#[rustc_on_unimplemented(on(_Self = "&str", label = "`a"), on(_Self = "alloc::string::String", label = "a"))]
24+
#[rustc_on_unimplemented(on(Self = "&str", label = "`a"), on(Self = "alloc::string::String", label = "a"))]
2525
trait Abc {}
2626

2727
#[proc_macro_attr::duplicated_attr()] // Should not warn!

0 commit comments

Comments
 (0)