@@ -7,7 +7,7 @@ These lints are all set to the 'deny' level by default.
7
7
This lint detects that a shift exceeds the type's number of bits. Some
8
8
example code that triggers this lint:
9
9
10
- ``` rust
10
+ ``` rust,ignore
11
11
1_i32 << 32;
12
12
```
13
13
@@ -27,7 +27,7 @@ error: bitshift exceeds the type's number of bits
27
27
This lint detects type parameter default erroneously allowed in invalid location. Some
28
28
example code that triggers this lint:
29
29
30
- ``` rust
30
+ ``` rust,ignore
31
31
fn foo<T=i32>(t: T) {}
32
32
```
33
33
@@ -51,7 +51,7 @@ error: defaults for type parameters are only allowed in `struct`, `enum`, `type`
51
51
visibility rules, and changed the visibility of struct constructors. Some
52
52
example code that triggers this lint:
53
53
54
- ``` rust
54
+ ``` rust,ignore
55
55
mod m {
56
56
pub struct S(u8);
57
57
@@ -96,7 +96,7 @@ it into its own directory if appropriate.
96
96
This lint detects names that resolve to ambiguous glob imports. Some example
97
97
code that triggers this lint:
98
98
99
- ``` rust
99
+ ``` rust,ignore
100
100
pub struct Foo;
101
101
102
102
mod bar {
@@ -143,7 +143,7 @@ This warning can always be fixed by removing the unused pattern in the
143
143
This lint catches transmuting from ` &T ` to ` &mut T ` becuase it is undefined
144
144
behavior. Some example code that triggers this lint:
145
145
146
- ``` rust
146
+ ``` rust,ignore
147
147
unsafe {
148
148
let y = std::mem::transmute::<&i32, &mut i32>(&5);
149
149
}
@@ -168,7 +168,7 @@ Constants do not have their symbols exported, and therefore, this probably
168
168
means you meant to use a ` static ` , not a `const. Some example code that
169
169
triggers this lint:
170
170
171
- ``` rust
171
+ ``` rust,ignore
172
172
#[no_mangle]
173
173
const FOO: i32 = 5;
174
174
```
@@ -191,7 +191,7 @@ error: const items should never be #[no_mangle]
191
191
This lint detects incorrect parentheses. Some example code that triggers this
192
192
lint:
193
193
194
- ``` rust
194
+ ``` rust,ignore
195
195
let x = 5 as usize();
196
196
```
197
197
@@ -225,7 +225,7 @@ to be accessed in safe code. This lint now catches and denies this kind of code.
225
225
This lint detects an unknown crate type found in a ` #[crate_type] ` directive. Some
226
226
example code that triggers this lint:
227
227
228
- ``` rust
228
+ ``` rust,ignore
229
229
#![crate_type="lol"]
230
230
```
231
231
@@ -238,4 +238,4 @@ error: invalid `crate_type` value
238
238
1 | #![crate_type="lol"]
239
239
| ^^^^^^^^^^^^^^^^^^^^
240
240
|
241
- ```
241
+ ```
0 commit comments