1
- error: unknown attribute `compile-fail`. Did you mean `compile_fail`?
1
+ error: unknown attribute `compile-fail`
2
2
--> $DIR/check-attr.rs:3:1
3
3
|
4
4
LL | / /// foo
@@ -10,14 +10,15 @@ LL | | /// boo
10
10
LL | | /// ```
11
11
| |_______^
12
12
|
13
+ = help: there is an attribute with a similar name: `compile_fail`
13
14
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
14
15
note: the lint level is defined here
15
16
--> $DIR/check-attr.rs:1:9
16
17
|
17
18
LL | #![deny(rustdoc::invalid_codeblock_attributes)]
18
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
20
20
- error: unknown attribute `compilefail`. Did you mean `compile_fail`?
21
+ error: unknown attribute `compilefail`
21
22
--> $DIR/check-attr.rs:3:1
22
23
|
23
24
LL | / /// foo
@@ -29,9 +30,10 @@ LL | | /// boo
29
30
LL | | /// ```
30
31
| |_______^
31
32
|
33
+ = help: there is an attribute with a similar name: `compile_fail`
32
34
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
33
35
34
- error: unknown attribute `comPile_fail`. Did you mean `compile_fail`?
36
+ error: unknown attribute `comPile_fail`
35
37
--> $DIR/check-attr.rs:3:1
36
38
|
37
39
LL | / /// foo
@@ -43,9 +45,10 @@ LL | | /// boo
43
45
LL | | /// ```
44
46
| |_______^
45
47
|
48
+ = help: there is an attribute with a similar name: `compile_fail`
46
49
= help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
47
50
48
- error: unknown attribute `should-panic`. Did you mean `should_panic`?
51
+ error: unknown attribute `should-panic`
49
52
--> $DIR/check-attr.rs:13:1
50
53
|
51
54
LL | / /// bar
@@ -57,9 +60,10 @@ LL | | /// boo
57
60
LL | | /// ```
58
61
| |_______^
59
62
|
63
+ = help: there is an attribute with a similar name: `should_panic`
60
64
= help: the code block will either not be tested if not marked as a rust one or won't fail if it doesn't panic when running
61
65
62
- error: unknown attribute `shouldpanic`. Did you mean `should_panic`?
66
+ error: unknown attribute `shouldpanic`
63
67
--> $DIR/check-attr.rs:13:1
64
68
|
65
69
LL | / /// bar
@@ -71,9 +75,10 @@ LL | | /// boo
71
75
LL | | /// ```
72
76
| |_______^
73
77
|
78
+ = help: there is an attribute with a similar name: `should_panic`
74
79
= help: the code block will either not be tested if not marked as a rust one or won't fail if it doesn't panic when running
75
80
76
- error: unknown attribute `sHould_panic`. Did you mean `should_panic`?
81
+ error: unknown attribute `sHould_panic`
77
82
--> $DIR/check-attr.rs:13:1
78
83
|
79
84
LL | / /// bar
@@ -85,9 +90,10 @@ LL | | /// boo
85
90
LL | | /// ```
86
91
| |_______^
87
92
|
93
+ = help: there is an attribute with a similar name: `should_panic`
88
94
= help: the code block will either not be tested if not marked as a rust one or won't fail if it doesn't panic when running
89
95
90
- error: unknown attribute `no-run`. Did you mean `no_run`?
96
+ error: unknown attribute `no-run`
91
97
--> $DIR/check-attr.rs:23:1
92
98
|
93
99
LL | / /// foobar
@@ -99,9 +105,10 @@ LL | | /// boo
99
105
LL | | /// ```
100
106
| |_______^
101
107
|
108
+ = help: there is an attribute with a similar name: `no_run`
102
109
= help: the code block will either not be tested if not marked as a rust one or will be run (which you might not want)
103
110
104
- error: unknown attribute `norun`. Did you mean `no_run`?
111
+ error: unknown attribute `norun`
105
112
--> $DIR/check-attr.rs:23:1
106
113
|
107
114
LL | / /// foobar
@@ -113,9 +120,10 @@ LL | | /// boo
113
120
LL | | /// ```
114
121
| |_______^
115
122
|
123
+ = help: there is an attribute with a similar name: `no_run`
116
124
= help: the code block will either not be tested if not marked as a rust one or will be run (which you might not want)
117
125
118
- error: unknown attribute `no_Run`. Did you mean `no_run`?
126
+ error: unknown attribute `no_Run`
119
127
--> $DIR/check-attr.rs:23:1
120
128
|
121
129
LL | / /// foobar
@@ -127,9 +135,10 @@ LL | | /// boo
127
135
LL | | /// ```
128
136
| |_______^
129
137
|
138
+ = help: there is an attribute with a similar name: `no_run`
130
139
= help: the code block will either not be tested if not marked as a rust one or will be run (which you might not want)
131
140
132
- error: unknown attribute `test-harness`. Did you mean `test_harness`?
141
+ error: unknown attribute `test-harness`
133
142
--> $DIR/check-attr.rs:33:1
134
143
|
135
144
LL | / /// b
@@ -141,9 +150,10 @@ LL | | /// boo
141
150
LL | | /// ```
142
151
| |_______^
143
152
|
153
+ = help: there is an attribute with a similar name: `test_harness`
144
154
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
145
155
146
- error: unknown attribute `testharness`. Did you mean `test_harness`?
156
+ error: unknown attribute `testharness`
147
157
--> $DIR/check-attr.rs:33:1
148
158
|
149
159
LL | / /// b
@@ -155,9 +165,10 @@ LL | | /// boo
155
165
LL | | /// ```
156
166
| |_______^
157
167
|
168
+ = help: there is an attribute with a similar name: `test_harness`
158
169
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
159
170
160
- error: unknown attribute `teSt_harness`. Did you mean `test_harness`?
171
+ error: unknown attribute `teSt_harness`
161
172
--> $DIR/check-attr.rs:33:1
162
173
|
163
174
LL | / /// b
@@ -169,9 +180,10 @@ LL | | /// boo
169
180
LL | | /// ```
170
181
| |_______^
171
182
|
183
+ = help: there is an attribute with a similar name: `test_harness`
172
184
= help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function
173
185
174
- error: unknown attribute `rust2018`. Did you mean `edition2018`?
186
+ error: unknown attribute `rust2018`
175
187
--> $DIR/check-attr.rs:43:1
176
188
|
177
189
LL | / /// b
@@ -181,6 +193,8 @@ LL | | /// ```rust2018
181
193
LL | | /// boo
182
194
LL | | /// ```
183
195
| |_______^
196
+ |
197
+ = help: there is an attribute with a similar name: `edition2018`
184
198
185
199
error: aborting due to 13 previous errors
186
200
0 commit comments