coverage: Bless coverage attribute tests · rust-lang/rust@1852141
11error: malformed `coverage` attribute input
2- --> $DIR/bad-syntax.rs:23:1
3- |
4-LL | #[coverage = true]
5- | ^^^^^^^^^^^^^^^^^^
6- |
7-help: the following are the possible correct uses
8- |
9-LL | #[coverage(on|off)]
2+ --> $DIR/bad-syntax.rs:15:1
103 |
114LL | #[coverage]
5+ | ^^^^^^^^^^^
126 |
13-14-error: expected identifier, found `,`
15- --> $DIR/bad-syntax.rs:52:12
7+help: the following are the possible correct uses
168 |
17-LL | #[coverage(,off)]
18- | ^
19- | |
20- | expected identifier
21- | help: remove this comma
9+LL | #[coverage(off)]
10+ | ~~~~~~~~~~~~~~~~
11+LL | #[coverage(on)]
12+ | ~~~~~~~~~~~~~~~
221323-error: expected `coverage(off)` or `coverage(on)`
14+error: malformed `coverage` attribute input
2415 --> $DIR/bad-syntax.rs:18:1
2516 |
26-LL | #[coverage]
27- | ^^^^^^^^^^^
28-29-error: expected `coverage(off)` or `coverage(on)`
30- --> $DIR/bad-syntax.rs:23:1
31- |
3217LL | #[coverage = true]
3318 | ^^^^^^^^^^^^^^^^^^
19+ |
20+help: the following are the possible correct uses
21+ |
22+LL | #[coverage(off)]
23+ | ~~~~~~~~~~~~~~~~
24+LL | #[coverage(on)]
25+ | ~~~~~~~~~~~~~~~
342635-error: expected `coverage(off)` or `coverage(on)`
36- --> $DIR/bad-syntax.rs:30:1
27+error: malformed `coverage` attribute input
28+ --> $DIR/bad-syntax.rs:21:1
3729 |
3830LL | #[coverage()]
3931 | ^^^^^^^^^^^^^
32+ |
33+help: the following are the possible correct uses
34+ |
35+LL | #[coverage(off)]
36+ | ~~~~~~~~~~~~~~~~
37+LL | #[coverage(on)]
38+ | ~~~~~~~~~~~~~~~
403941-error: expected `coverage(off)` or `coverage(on)`
42- --> $DIR/bad-syntax.rs:33:1
40+error: malformed `coverage` attribute input
41+ --> $DIR/bad-syntax.rs:24:1
4342 |
4443LL | #[coverage(off, off)]
4544 | ^^^^^^^^^^^^^^^^^^^^^
45+ |
46+help: the following are the possible correct uses
47+ |
48+LL | #[coverage(off)]
49+ | ~~~~~~~~~~~~~~~~
50+LL | #[coverage(on)]
51+ | ~~~~~~~~~~~~~~~
465247-error: expected `coverage(off)` or `coverage(on)`
48- --> $DIR/bad-syntax.rs:36:1
53+error: malformed `coverage` attribute input
54+ --> $DIR/bad-syntax.rs:27:1
4955 |
5056LL | #[coverage(off, on)]
5157 | ^^^^^^^^^^^^^^^^^^^^
58+ |
59+help: the following are the possible correct uses
60+ |
61+LL | #[coverage(off)]
62+ | ~~~~~~~~~~~~~~~~
63+LL | #[coverage(on)]
64+ | ~~~~~~~~~~~~~~~
526553-error: expected `coverage(off)` or `coverage(on)`
54- --> $DIR/bad-syntax.rs:39:1
66+error: malformed `coverage` attribute input
67+ --> $DIR/bad-syntax.rs:30:1
5568 |
5669LL | #[coverage(bogus)]
5770 | ^^^^^^^^^^^^^^^^^^
71+ |
72+help: the following are the possible correct uses
73+ |
74+LL | #[coverage(off)]
75+ | ~~~~~~~~~~~~~~~~
76+LL | #[coverage(on)]
77+ | ~~~~~~~~~~~~~~~
587859-error: expected `coverage(off)` or `coverage(on)`
60- --> $DIR/bad-syntax.rs:42:1
79+error: malformed `coverage` attribute input
80+ --> $DIR/bad-syntax.rs:33:1
6181 |
6282LL | #[coverage(bogus, off)]
6383 | ^^^^^^^^^^^^^^^^^^^^^^^
84+ |
85+help: the following are the possible correct uses
86+ |
87+LL | #[coverage(off)]
88+ | ~~~~~~~~~~~~~~~~
89+LL | #[coverage(on)]
90+ | ~~~~~~~~~~~~~~~
649165-error: expected `coverage(off)` or `coverage(on)`
66- --> $DIR/bad-syntax.rs:45:1
92+error: malformed `coverage` attribute input
93+ --> $DIR/bad-syntax.rs:36:1
6794 |
6895LL | #[coverage(off, bogus)]
6996 | ^^^^^^^^^^^^^^^^^^^^^^^
97+ |
98+help: the following are the possible correct uses
99+ |
100+LL | #[coverage(off)]
101+ | ~~~~~~~~~~~~~~~~
102+LL | #[coverage(on)]
103+ | ~~~~~~~~~~~~~~~
7010471-error: expected `coverage(off)` or `coverage(on)`
72- --> $DIR/bad-syntax.rs:52:1
105+error: expected identifier, found `,`
106+ --> $DIR/bad-syntax.rs:42:12
73107 |
74108LL | #[coverage(,off)]
75- | ^^^^^^^^^^^^^^^^^
109+ | ^
110+ | |
111+ | expected identifier
112+ | help: remove this comma
113+114+error: multiple `coverage` attributes
115+ --> $DIR/bad-syntax.rs:7:1
116+ |
117+LL | #[coverage(off)]
118+ | ^^^^^^^^^^^^^^^^ help: remove this attribute
119+ |
120+note: attribute also specified here
121+ --> $DIR/bad-syntax.rs:8:1
122+ |
123+LL | #[coverage(off)]
124+ | ^^^^^^^^^^^^^^^^
125+126+error: multiple `coverage` attributes
127+ --> $DIR/bad-syntax.rs:11:1
128+ |
129+LL | #[coverage(off)]
130+ | ^^^^^^^^^^^^^^^^ help: remove this attribute
131+ |
132+note: attribute also specified here
133+ --> $DIR/bad-syntax.rs:12:1
134+ |
135+LL | #[coverage(on)]
136+ | ^^^^^^^^^^^^^^^
7613777138error: aborting due to 11 previous errors
78139