1- error: unknown attribute `compile-fail`. Did you mean `compile_fail`?
1+ error: unknown attribute `compile-fail`
22 --> $DIR/check-attr.rs:3:1
33 |
44LL | / /// foo
@@ -10,14 +10,15 @@ LL | | /// boo
1010LL | | /// ```
1111 | |_______^
1212 |
13+ = help: there is an attribute with a similar name: `compile_fail`
1314 = help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
1415note: the lint level is defined here
1516 --> $DIR/check-attr.rs:1:9
1617 |
1718LL | #![deny(rustdoc::invalid_codeblock_attributes)]
1819 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1920
20- error: unknown attribute `compilefail`. Did you mean `compile_fail`?
21+ error: unknown attribute `compilefail`
2122 --> $DIR/check-attr.rs:3:1
2223 |
2324LL | / /// foo
@@ -29,9 +30,10 @@ LL | | /// boo
2930LL | | /// ```
3031 | |_______^
3132 |
33+ = help: there is an attribute with a similar name: `compile_fail`
3234 = help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
3335
34- error: unknown attribute `comPile_fail`. Did you mean `compile_fail`?
36+ error: unknown attribute `comPile_fail`
3537 --> $DIR/check-attr.rs:3:1
3638 |
3739LL | / /// foo
@@ -43,9 +45,10 @@ LL | | /// boo
4345LL | | /// ```
4446 | |_______^
4547 |
48+ = help: there is an attribute with a similar name: `compile_fail`
4649 = help: the code block will either not be tested if not marked as a rust one or won't fail if it compiles successfully
4750
48- error: unknown attribute `should-panic`. Did you mean `should_panic`?
51+ error: unknown attribute `should-panic`
4952 --> $DIR/check-attr.rs:13:1
5053 |
5154LL | / /// bar
@@ -57,9 +60,10 @@ LL | | /// boo
5760LL | | /// ```
5861 | |_______^
5962 |
63+ = help: there is an attribute with a similar name: `should_panic`
6064 = 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
6165
62- error: unknown attribute `shouldpanic`. Did you mean `should_panic`?
66+ error: unknown attribute `shouldpanic`
6367 --> $DIR/check-attr.rs:13:1
6468 |
6569LL | / /// bar
@@ -71,9 +75,10 @@ LL | | /// boo
7175LL | | /// ```
7276 | |_______^
7377 |
78+ = help: there is an attribute with a similar name: `should_panic`
7479 = 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
7580
76- error: unknown attribute `sHould_panic`. Did you mean `should_panic`?
81+ error: unknown attribute `sHould_panic`
7782 --> $DIR/check-attr.rs:13:1
7883 |
7984LL | / /// bar
@@ -85,9 +90,10 @@ LL | | /// boo
8590LL | | /// ```
8691 | |_______^
8792 |
93+ = help: there is an attribute with a similar name: `should_panic`
8894 = 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
8995
90- error: unknown attribute `no-run`. Did you mean `no_run`?
96+ error: unknown attribute `no-run`
9197 --> $DIR/check-attr.rs:23:1
9298 |
9399LL | / /// foobar
@@ -99,9 +105,10 @@ LL | | /// boo
99105LL | | /// ```
100106 | |_______^
101107 |
108+ = help: there is an attribute with a similar name: `no_run`
102109 = 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)
103110
104- error: unknown attribute `norun`. Did you mean `no_run`?
111+ error: unknown attribute `norun`
105112 --> $DIR/check-attr.rs:23:1
106113 |
107114LL | / /// foobar
@@ -113,9 +120,10 @@ LL | | /// boo
113120LL | | /// ```
114121 | |_______^
115122 |
123+ = help: there is an attribute with a similar name: `no_run`
116124 = 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)
117125
118- error: unknown attribute `no_Run`. Did you mean `no_run`?
126+ error: unknown attribute `no_Run`
119127 --> $DIR/check-attr.rs:23:1
120128 |
121129LL | / /// foobar
@@ -127,9 +135,10 @@ LL | | /// boo
127135LL | | /// ```
128136 | |_______^
129137 |
138+ = help: there is an attribute with a similar name: `no_run`
130139 = 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)
131140
132- error: unknown attribute `test-harness`. Did you mean `test_harness`?
141+ error: unknown attribute `test-harness`
133142 --> $DIR/check-attr.rs:33:1
134143 |
135144LL | / /// b
@@ -141,9 +150,10 @@ LL | | /// boo
141150LL | | /// ```
142151 | |_______^
143152 |
153+ = help: there is an attribute with a similar name: `test_harness`
144154 = 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
145155
146- error: unknown attribute `testharness`. Did you mean `test_harness`?
156+ error: unknown attribute `testharness`
147157 --> $DIR/check-attr.rs:33:1
148158 |
149159LL | / /// b
@@ -155,9 +165,10 @@ LL | | /// boo
155165LL | | /// ```
156166 | |_______^
157167 |
168+ = help: there is an attribute with a similar name: `test_harness`
158169 = 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
159170
160- error: unknown attribute `teSt_harness`. Did you mean `test_harness`?
171+ error: unknown attribute `teSt_harness`
161172 --> $DIR/check-attr.rs:33:1
162173 |
163174LL | / /// b
@@ -169,9 +180,10 @@ LL | | /// boo
169180LL | | /// ```
170181 | |_______^
171182 |
183+ = help: there is an attribute with a similar name: `test_harness`
172184 = 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
173185
174- error: unknown attribute `rust2018`. Did you mean `edition2018`?
186+ error: unknown attribute `rust2018`
175187 --> $DIR/check-attr.rs:43:1
176188 |
177189LL | / /// b
@@ -181,6 +193,8 @@ LL | | /// ```rust2018
181193LL | | /// boo
182194LL | | /// ```
183195 | |_______^
196+ |
197+ = help: there is an attribute with a similar name: `edition2018`
184198
185199error: aborting due to 13 previous errors
186200
0 commit comments