|
1 | 1 | warning: malformed `on_unimplemented` attribute |
2 | | - --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:3:1 |
| 2 | + --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:4:5 |
3 | 3 | | |
4 | | -LL | / #[diagnostic::on_unimplemented( |
5 | | -LL | | |
6 | | -LL | | |
7 | | -LL | | if(Self = ()), |
8 | | -... | |
9 | | -LL | | note = "not used yet" |
10 | | -LL | | )] |
11 | | - | |__^ invalid option found here |
| 4 | +LL | if(Self = "()"), |
| 5 | + | ^^^^^^^^^^^^^^^ invalid option found here |
12 | 6 | | |
13 | 7 | = help: only `message`, `note` and `label` are allowed as options |
14 | 8 | = note: `#[warn(unknown_or_malformed_diagnostic_attributes)]` on by default |
15 | 9 |
|
16 | 10 | warning: malformed `on_unimplemented` attribute |
17 | | - --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:3:1 |
| 11 | + --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:4:5 |
18 | 12 | | |
19 | | -LL | / #[diagnostic::on_unimplemented( |
20 | | -LL | | |
21 | | -LL | | |
22 | | -LL | | if(Self = ()), |
23 | | -... | |
24 | | -LL | | note = "not used yet" |
25 | | -LL | | )] |
26 | | - | |__^ invalid option found here |
| 13 | +LL | if(Self = "()"), |
| 14 | + | ^^^^^^^^^^^^^^^ invalid option found here |
27 | 15 | | |
28 | 16 | = help: only `message`, `note` and `label` are allowed as options |
29 | 17 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
30 | 18 |
|
31 | | -error[E0277]: fallback!! |
32 | | - --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:20:15 |
| 19 | +error[E0277]: custom message |
| 20 | + --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:18:15 |
33 | 21 | | |
34 | 22 | LL | takes_foo(()); |
35 | 23 | | --------- ^^ fallback label |
36 | 24 | | | |
37 | 25 | | required by a bound introduced by this call |
38 | 26 | | |
39 | 27 | = help: the trait `Foo` is not implemented for `()` |
40 | | - = note: fallback note |
| 28 | + = note: custom note |
41 | 29 | help: this trait has no implementations, consider adding one |
42 | | - --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:15:1 |
| 30 | + --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:13:1 |
43 | 31 | | |
44 | 32 | LL | trait Foo {} |
45 | 33 | | ^^^^^^^^^ |
46 | 34 | note: required by a bound in `takes_foo` |
47 | | - --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:17:22 |
| 35 | + --> $DIR/ignore_unsupported_options_and_continue_to_use_fallback.rs:15:22 |
48 | 36 | | |
49 | 37 | LL | fn takes_foo(_: impl Foo) {} |
50 | 38 | | ^^^ required by this bound in `takes_foo` |
|
0 commit comments