File tree 6 files changed +13
-10
lines changed
6 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ declare_clippy_lint! {
16
16
/// **Known problems:** None
17
17
///
18
18
/// **Example:**
19
- /// ```rust
19
+ /// ```rust,ignore
20
20
/// assert!(false)
21
21
/// // or
22
22
/// assert!(true)
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ declare_clippy_lint! {
22
22
/// **Example:**
23
23
/// ```rust
24
24
/// let mut a = 5;
25
- /// ...
25
+ /// let b = 0;
26
+ /// // ...
26
27
/// a = a + b;
27
28
/// ```
28
29
pub ASSIGN_OP_PATTERN ,
Original file line number Diff line number Diff line change @@ -17,9 +17,10 @@ declare_clippy_lint! {
17
17
///
18
18
/// **Example:**
19
19
/// ```rust
20
+ /// let x = 1;
20
21
/// 0 / x;
21
22
/// 0 * x;
22
- /// x & 0
23
+ /// x & 0;
23
24
/// ```
24
25
pub ERASING_OP ,
25
26
correctness,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ declare_clippy_lint! {
23
23
/// See rust-lang/rust-clippy#1439 for more details.
24
24
///
25
25
/// **Example:**
26
- /// ```rust
26
+ /// ```rust,ignore
27
27
/// xs.map(|x| foo(x))
28
28
/// ```
29
29
/// where `foo(_)` is a plain function that takes the exact argument type of
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ declare_clippy_lint! {
37
37
/// **Example:**
38
38
/// ```rust
39
39
/// fn foo(ref x: u8) -> bool {
40
- /// ..
40
+ /// true
41
41
/// }
42
42
/// ```
43
43
pub TOPLEVEL_REF_ARG ,
Original file line number Diff line number Diff line change @@ -40,15 +40,15 @@ declare_clippy_lint! {
40
40
/// **Known problems:** None.
41
41
///
42
42
/// **Example:**
43
- /// ```rust
43
+ /// ```rust,ignore
44
44
/// struct X {
45
45
/// values: Box<Vec<Foo>>,
46
46
/// }
47
47
/// ```
48
48
///
49
49
/// Better:
50
50
///
51
- /// ```rust
51
+ /// ```rust,ignore
52
52
/// struct X {
53
53
/// values: Vec<Foo>,
54
54
/// }
@@ -101,6 +101,7 @@ declare_clippy_lint! {
101
101
/// fn x() -> Option<Option<u32>> {
102
102
/// None
103
103
/// }
104
+ /// ```
104
105
pub OPTION_OPTION ,
105
106
complexity,
106
107
"usage of `Option<Option<T>>`"
@@ -150,13 +151,13 @@ declare_clippy_lint! {
150
151
/// **Known problems:** None.
151
152
///
152
153
/// **Example:**
153
- /// ```rust
154
+ /// ```rust,ignore
154
155
/// fn foo(bar: &Box<T>) { ... }
155
156
/// ```
156
157
///
157
158
/// Better:
158
159
///
159
- /// ```rust
160
+ /// ```rust,ignore
160
161
/// fn foo(bar: &T) { ... }
161
162
/// ```
162
163
pub BORROWED_BOX ,
@@ -1537,7 +1538,7 @@ declare_clippy_lint! {
1537
1538
/// like `#[cfg(target_pointer_width = "64")] ..` instead.
1538
1539
///
1539
1540
/// **Example:**
1540
- /// ```rust
1541
+ /// ```rust,ignore
1541
1542
/// vec.len() <= 0
1542
1543
/// 100 > std::i32::MAX
1543
1544
/// ```
You can’t perform that action at this time.
0 commit comments