Skip to content

Commit 7e5c819

Browse files
authored
Rollup merge of rust-lang#141130 - mejrs:use_self, r=compiler-errors
rustc_on_unimplemented cleanups Addresses some of the fixmes from rust-lang#139091 and rust-lang#140307. - switch from `_Self` to `Self` in library - properly validate that arguments in the `on` filter and the format strings are actually valid See rust-lang/rustc-dev-guide#2357 for the relevant documentation.
2 parents 7debaf6 + f3bad7f commit 7e5c819

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)