@@ -7,7 +7,7 @@ These lints are all set to the 'deny' level by default.
77This lint detects that a shift exceeds the type's number of bits. Some
88example code that triggers this lint:
99
10- ``` rust
10+ ``` rust,ignore
11111_i32 << 32;
1212```
1313
@@ -27,7 +27,7 @@ error: bitshift exceeds the type's number of bits
2727This lint detects type parameter default erroneously allowed in invalid location. Some
2828example code that triggers this lint:
2929
30- ``` rust
30+ ``` rust,ignore
3131fn foo<T=i32>(t: T) {}
3232```
3333
@@ -51,7 +51,7 @@ error: defaults for type parameters are only allowed in `struct`, `enum`, `type`
5151visibility rules, and changed the visibility of struct constructors. Some
5252example code that triggers this lint:
5353
54- ``` rust
54+ ``` rust,ignore
5555mod m {
5656 pub struct S(u8);
5757
@@ -96,7 +96,7 @@ it into its own directory if appropriate.
9696This lint detects names that resolve to ambiguous glob imports. Some example
9797code that triggers this lint:
9898
99- ``` rust
99+ ``` rust,ignore
100100pub struct Foo;
101101
102102mod bar {
@@ -143,7 +143,7 @@ This warning can always be fixed by removing the unused pattern in the
143143This lint catches transmuting from ` &T ` to ` &mut T ` becuase it is undefined
144144behavior. Some example code that triggers this lint:
145145
146- ``` rust
146+ ``` rust,ignore
147147unsafe {
148148 let y = std::mem::transmute::<&i32, &mut i32>(&5);
149149}
@@ -168,7 +168,7 @@ Constants do not have their symbols exported, and therefore, this probably
168168means you meant to use a ` static ` , not a `const. Some example code that
169169triggers this lint:
170170
171- ``` rust
171+ ``` rust,ignore
172172#[no_mangle]
173173const FOO: i32 = 5;
174174```
@@ -191,7 +191,7 @@ error: const items should never be #[no_mangle]
191191This lint detects incorrect parentheses. Some example code that triggers this
192192lint:
193193
194- ``` rust
194+ ``` rust,ignore
195195let x = 5 as usize();
196196```
197197
@@ -225,7 +225,7 @@ to be accessed in safe code. This lint now catches and denies this kind of code.
225225This lint detects an unknown crate type found in a ` #[crate_type] ` directive. Some
226226example code that triggers this lint:
227227
228- ``` rust
228+ ``` rust,ignore
229229#![crate_type="lol"]
230230```
231231
@@ -238,4 +238,4 @@ error: invalid `crate_type` value
2382381 | #![crate_type="lol"]
239239 | ^^^^^^^^^^^^^^^^^^^^
240240 |
241- ```
241+ ```
0 commit comments