|
1 | | -warning: `#[no_coverage]` can only be applied at the function level, not on code directly |
2 | | - --> $DIR/no-coverage.rs:36:5 |
| 1 | +warning: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly |
| 2 | + --> $DIR/no-coverage.rs:8:1 |
3 | 3 | | |
4 | | -LL | #[no_coverage] |
5 | | - | ^^^^^^^^^^^^^^ |
| 4 | +LL | #[no_coverage] |
| 5 | + | ^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | note: the lint level is defined here |
8 | 8 | --> $DIR/no-coverage.rs:4:9 |
9 | 9 | | |
10 | 10 | LL | #![warn(unused_attributes)] |
11 | 11 | | ^^^^^^^^^^^^^^^^^ |
12 | 12 |
|
13 | | -warning: `#[no_coverage]` can only be applied at the function level, not on code directly |
14 | | - --> $DIR/no-coverage.rs:40:9 |
| 13 | +warning: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly |
| 14 | + --> $DIR/no-coverage.rs:20:1 |
| 15 | + | |
| 16 | +LL | #[no_coverage] |
| 17 | + | ^^^^^^^^^^^^^^ |
| 18 | + |
| 19 | +warning: `#[no_coverage]` may only be applied to function definitions |
| 20 | + --> $DIR/no-coverage.rs:42:5 |
| 21 | + | |
| 22 | +LL | #[no_coverage] |
| 23 | + | ^^^^^^^^^^^^^^ |
| 24 | + |
| 25 | +warning: `#[no_coverage]` may only be applied to function definitions |
| 26 | + --> $DIR/no-coverage.rs:47:9 |
15 | 27 | | |
16 | 28 | LL | #[no_coverage] |
17 | 29 | | ^^^^^^^^^^^^^^ |
18 | 30 |
|
19 | | -warning: `#[no_coverage]` can only be applied at the function level, not on code directly |
20 | | - --> $DIR/no-coverage.rs:44:5 |
| 31 | +warning: `#[no_coverage]` may only be applied to function definitions |
| 32 | + --> $DIR/no-coverage.rs:52:5 |
21 | 33 | | |
22 | 34 | LL | #[no_coverage] |
23 | 35 | | ^^^^^^^^^^^^^^ |
24 | 36 |
|
25 | 37 | error[E0788]: `#[no_coverage]` must be applied to coverable code |
26 | | - --> $DIR/no-coverage.rs:7:5 |
| 38 | + --> $DIR/no-coverage.rs:11:5 |
27 | 39 | | |
28 | 40 | LL | #[no_coverage] |
29 | 41 | | ^^^^^^^^^^^^^^ |
30 | 42 | LL | const X: u32; |
31 | 43 | | ------------- not coverable code |
32 | 44 |
|
33 | 45 | error[E0788]: `#[no_coverage]` must be applied to coverable code |
34 | | - --> $DIR/no-coverage.rs:10:5 |
| 46 | + --> $DIR/no-coverage.rs:14:5 |
35 | 47 | | |
36 | 48 | LL | #[no_coverage] |
37 | 49 | | ^^^^^^^^^^^^^^ |
38 | 50 | LL | type T; |
39 | 51 | | ------- not coverable code |
40 | 52 |
|
41 | 53 | error[E0788]: `#[no_coverage]` must be applied to coverable code |
42 | | - --> $DIR/no-coverage.rs:19:5 |
| 54 | + --> $DIR/no-coverage.rs:25:5 |
43 | 55 | | |
44 | 56 | LL | #[no_coverage] |
45 | 57 | | ^^^^^^^^^^^^^^ |
46 | 58 | LL | type T = Self; |
47 | 59 | | -------------- not coverable code |
48 | 60 |
|
49 | 61 | error[E0788]: `#[no_coverage]` must be applied to coverable code |
50 | | - --> $DIR/no-coverage.rs:22:5 |
| 62 | + --> $DIR/no-coverage.rs:28:5 |
51 | 63 | | |
52 | 64 | LL | #[no_coverage] |
53 | 65 | | ^^^^^^^^^^^^^^ |
54 | 66 | LL | type U = impl Trait; |
55 | 67 | | -------------------- not coverable code |
56 | 68 |
|
57 | 69 | error[E0788]: `#[no_coverage]` must be applied to coverable code |
58 | | - --> $DIR/no-coverage.rs:27:5 |
| 70 | + --> $DIR/no-coverage.rs:33:5 |
59 | 71 | | |
60 | 72 | LL | #[no_coverage] |
61 | 73 | | ^^^^^^^^^^^^^^ |
62 | 74 | LL | static X: u32; |
63 | 75 | | -------------- not coverable code |
64 | 76 |
|
65 | 77 | error[E0788]: `#[no_coverage]` must be applied to coverable code |
66 | | - --> $DIR/no-coverage.rs:30:5 |
| 78 | + --> $DIR/no-coverage.rs:36:5 |
67 | 79 | | |
68 | 80 | LL | #[no_coverage] |
69 | 81 | | ^^^^^^^^^^^^^^ |
70 | 82 | LL | type T; |
71 | 83 | | ------- not coverable code |
72 | 84 |
|
| 85 | +warning: `#[no_coverage]` does not propagate into items and must be applied to the contained functions directly |
| 86 | + --> $DIR/no-coverage.rs:5:1 |
| 87 | + | |
| 88 | +LL | #![no_coverage] |
| 89 | + | ^^^^^^^^^^^^^^^ |
| 90 | + |
73 | 91 | error: unconstrained opaque type |
74 | | - --> $DIR/no-coverage.rs:23:14 |
| 92 | + --> $DIR/no-coverage.rs:29:14 |
75 | 93 | | |
76 | 94 | LL | type U = impl Trait; |
77 | 95 | | ^^^^^^^^^^ |
78 | 96 | | |
79 | 97 | = note: `U` must be used in combination with a concrete type within the same module |
80 | 98 |
|
81 | | -error: aborting due to 7 previous errors; 3 warnings emitted |
| 99 | +error: aborting due to 7 previous errors; 6 warnings emitted |
82 | 100 |
|
83 | 101 | For more information about this error, try `rustc --explain E0788`. |
0 commit comments