|
1 |
| -error: invalid skip attribute |
| 1 | +error: incorrect usage of the `#[skip]` attribute |
| 2 | + --> $DIR/derive-skip-invalid.rs:5:24 |
| 3 | + | |
| 4 | +LL | struct KeyVal(#[skip = "Debug"] usize); |
| 5 | + | ^^^^^^^ |
| 6 | + | |
| 7 | +note: the `#[skip]` attribute accepts an optional list of traits |
| 8 | + --> $DIR/derive-skip-invalid.rs:5:24 |
| 9 | + | |
| 10 | +LL | struct KeyVal(#[skip = "Debug"] usize); |
| 11 | + | ^^^^^^^ |
| 12 | +help: try using `#[skip]` or `#[skip(Trait)]` |
2 | 13 | --> $DIR/derive-skip-invalid.rs:5:24
|
3 | 14 | |
|
4 | 15 | LL | struct KeyVal(#[skip = "Debug"] usize);
|
5 | 16 | | ^^^^^^^
|
6 | 17 |
|
7 |
| -error: incorrect skip argument |
8 |
| - --> $DIR/derive-skip-invalid.rs:8:22 |
| 18 | +error: incorrect usage of the `#[skip]` attribute |
| 19 | + --> $DIR/derive-skip-invalid.rs:10:22 |
| 20 | + | |
| 21 | +LL | struct BadArg(#[skip("Debug")] usize); |
| 22 | + | ^^^^^^^ |
| 23 | + | |
| 24 | +note: the `#[skip]` attribute accepts an optional list of traits |
| 25 | + --> $DIR/derive-skip-invalid.rs:10:22 |
| 26 | + | |
| 27 | +LL | struct BadArg(#[skip("Debug")] usize); |
| 28 | + | ^^^^^^^ |
| 29 | +help: try using `#[skip]` or `#[skip(Trait)]` |
| 30 | + --> $DIR/derive-skip-invalid.rs:10:22 |
9 | 31 | |
|
10 | 32 | LL | struct BadArg(#[skip("Debug")] usize);
|
11 | 33 | | ^^^^^^^
|
12 | 34 |
|
13 |
| -error: cannot find attribute `skip` in this scope |
14 |
| - --> $DIR/derive-skip-invalid.rs:12:20 |
| 35 | +warning: the `#[skip]` attribute does not support this trait |
| 36 | + --> $DIR/derive-skip-invalid.rs:21:26 |
| 37 | + | |
| 38 | +LL | struct SkipClone2(#[skip(Clone)] usize); |
| 39 | + | ^^^^^ |
| 40 | + | |
| 41 | + = help: the supported traits are `PartialEq`, `PartialOrd`, `Ord`, `Hash`, `Debug` |
| 42 | + = note: `#[warn(unsupported_derive_skip)]` on by default |
| 43 | + |
| 44 | +warning: the `#[skip]` attribute does not support this trait |
| 45 | + --> $DIR/derive-skip-invalid.rs:21:26 |
| 46 | + | |
| 47 | +LL | struct SkipClone2(#[skip(Clone)] usize); |
| 48 | + | ^^^^^ |
15 | 49 | |
|
16 |
| -LL | struct SkipClone(#[skip] usize); |
17 |
| - | ^^^^ |
| 50 | + = help: the supported traits are `PartialEq`, `PartialOrd`, `Ord`, `Hash`, `Debug` |
| 51 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
18 | 52 |
|
19 |
| -error: aborting due to 3 previous errors |
| 53 | +error: aborting due to 2 previous errors; 2 warnings emitted |
20 | 54 |
|
0 commit comments