Skip to content

Commit 3df9744

Browse files
committed
Update lintlist
1 parent 97c05ed commit 3df9744

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

src/lintlist/mod.rs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub const ALL_LINTS: [Lint; 344] = [
8787
Lint {
8888
name: "borrow_interior_mutable_const",
8989
group: "correctness",
90-
desc: "referencing const with interior mutability",
90+
desc: "referencing `const` with interior mutability",
9191
deprecation: None,
9292
module: "non_copy_const",
9393
},
@@ -178,7 +178,7 @@ pub const ALL_LINTS: [Lint; 344] = [
178178
Lint {
179179
name: "char_lit_as_u8",
180180
group: "complexity",
181-
desc: "casting a character literal to u8 truncates",
181+
desc: "casting a character literal to `u8` truncates",
182182
deprecation: None,
183183
module: "types",
184184
},
@@ -227,7 +227,7 @@ pub const ALL_LINTS: [Lint; 344] = [
227227
Lint {
228228
name: "cmp_nan",
229229
group: "correctness",
230-
desc: "comparisons to NAN, which will always return false, probably not intended",
230+
desc: "comparisons to `NAN`, which will always return false, probably not intended",
231231
deprecation: None,
232232
module: "misc",
233233
},
@@ -304,14 +304,14 @@ pub const ALL_LINTS: [Lint; 344] = [
304304
Lint {
305305
name: "declare_interior_mutable_const",
306306
group: "correctness",
307-
desc: "declaring const with interior mutability",
307+
desc: "declaring `const` with interior mutability",
308308
deprecation: None,
309309
module: "non_copy_const",
310310
},
311311
Lint {
312312
name: "default_trait_access",
313313
group: "pedantic",
314-
desc: "checks for literal calls to Default::default()",
314+
desc: "checks for literal calls to `Default::default()`",
315315
deprecation: None,
316316
module: "default_trait_access",
317317
},
@@ -423,7 +423,7 @@ pub const ALL_LINTS: [Lint; 344] = [
423423
Lint {
424424
name: "else_if_without_else",
425425
group: "restriction",
426-
desc: "if expression with an `else if`, but without a final `else` branch",
426+
desc: "`if` expression with an `else if`, but without a final `else` branch",
427427
deprecation: None,
428428
module: "else_if_without_else",
429429
},
@@ -710,14 +710,14 @@ pub const ALL_LINTS: [Lint; 344] = [
710710
Lint {
711711
name: "if_same_then_else",
712712
group: "correctness",
713-
desc: "if with the same *then* and *else* blocks",
713+
desc: "`if` with the same `then` and `else` blocks",
714714
deprecation: None,
715715
module: "copies",
716716
},
717717
Lint {
718718
name: "ifs_same_cond",
719719
group: "correctness",
720-
desc: "consecutive `ifs` with the same condition",
720+
desc: "consecutive `if`s with the same condition",
721721
deprecation: None,
722722
module: "copies",
723723
},
@@ -766,7 +766,7 @@ pub const ALL_LINTS: [Lint; 344] = [
766766
Lint {
767767
name: "infallible_destructuring_match",
768768
group: "style",
769-
desc: "a match statement with a single infallible arm instead of a `let`",
769+
desc: "a `match` statement with a single infallible arm instead of a `let`",
770770
deprecation: None,
771771
module: "infallible_destructuring_match",
772772
},
@@ -787,7 +787,7 @@ pub const ALL_LINTS: [Lint; 344] = [
787787
Lint {
788788
name: "inherent_to_string_shadow_display",
789789
group: "correctness",
790-
desc: "type implements inherent method `to_string()`, which gets shadowed by the implementation of the `Display` trait ",
790+
desc: "type implements inherent method `to_string()`, which gets shadowed by the implementation of the `Display` trait",
791791
deprecation: None,
792792
module: "inherent_to_string",
793793
},
@@ -808,7 +808,7 @@ pub const ALL_LINTS: [Lint; 344] = [
808808
Lint {
809809
name: "int_plus_one",
810810
group: "complexity",
811-
desc: "instead of using x >= y + 1, use x > y",
811+
desc: "instead of using `x >= y + 1`, use `x > y`",
812812
deprecation: None,
813813
module: "int_plus_one",
814814
},
@@ -948,21 +948,21 @@ pub const ALL_LINTS: [Lint; 344] = [
948948
Lint {
949949
name: "let_underscore_must_use",
950950
group: "restriction",
951-
desc: "non-binding let on a #[must_use] expression",
951+
desc: "non-binding let on a `#[must_use]` expression",
952952
deprecation: None,
953953
module: "let_underscore",
954954
},
955955
Lint {
956956
name: "let_unit_value",
957957
group: "style",
958-
desc: "creating a let binding to a value of unit type, which usually can\'t be used afterwards",
958+
desc: "creating a `let` binding to a value of unit type, which usually can\'t be used afterwards",
959959
deprecation: None,
960960
module: "types",
961961
},
962962
Lint {
963963
name: "linkedlist",
964964
group: "pedantic",
965-
desc: "usage of LinkedList, usually a vector is faster, or a more specialized data structure like a VecDeque",
965+
desc: "usage of LinkedList, usually a vector is faster, or a more specialized data structure like a `VecDeque`",
966966
deprecation: None,
967967
module: "types",
968968
},
@@ -1039,28 +1039,28 @@ pub const ALL_LINTS: [Lint; 344] = [
10391039
Lint {
10401040
name: "match_as_ref",
10411041
group: "complexity",
1042-
desc: "a match on an Option value instead of using `as_ref()` or `as_mut`",
1042+
desc: "a `match` on an Option value instead of using `as_ref()` or `as_mut`",
10431043
deprecation: None,
10441044
module: "matches",
10451045
},
10461046
Lint {
10471047
name: "match_bool",
10481048
group: "style",
1049-
desc: "a match on a boolean expression instead of an `if..else` block",
1049+
desc: "a `match` on a boolean expression instead of an `if..else` block",
10501050
deprecation: None,
10511051
module: "matches",
10521052
},
10531053
Lint {
10541054
name: "match_overlapping_arm",
10551055
group: "style",
1056-
desc: "a match with overlapping arms",
1056+
desc: "a `match` with overlapping arms",
10571057
deprecation: None,
10581058
module: "matches",
10591059
},
10601060
Lint {
10611061
name: "match_ref_pats",
10621062
group: "style",
1063-
desc: "a match or `if let` with all arms prefixed with `&` instead of deref-ing the match expression",
1063+
desc: "a `match` or `if let` with all arms prefixed with `&` instead of deref-ing the match expression",
10641064
deprecation: None,
10651065
module: "matches",
10661066
},
@@ -1074,7 +1074,7 @@ pub const ALL_LINTS: [Lint; 344] = [
10741074
Lint {
10751075
name: "match_wild_err_arm",
10761076
group: "style",
1077-
desc: "a match with `Err(_)` arm and take drastic actions",
1077+
desc: "a `match` with `Err(_)` arm and take drastic actions",
10781078
deprecation: None,
10791079
module: "matches",
10801080
},
@@ -1088,7 +1088,7 @@ pub const ALL_LINTS: [Lint; 344] = [
10881088
Lint {
10891089
name: "mem_discriminant_non_enum",
10901090
group: "correctness",
1091-
desc: "calling mem::descriminant on non-enum type",
1091+
desc: "calling `mem::descriminant` on non-enum type",
10921092
deprecation: None,
10931093
module: "mem_discriminant",
10941094
},
@@ -1158,7 +1158,7 @@ pub const ALL_LINTS: [Lint; 344] = [
11581158
Lint {
11591159
name: "missing_inline_in_public_items",
11601160
group: "restriction",
1161-
desc: "detects missing #[inline] attribute for public callables (functions, trait methods, methods...)",
1161+
desc: "detects missing `#[inline]` attribute for public callables (functions, trait methods, methods...)",
11621162
deprecation: None,
11631163
module: "missing_inline",
11641164
},
@@ -1263,7 +1263,7 @@ pub const ALL_LINTS: [Lint; 344] = [
12631263
Lint {
12641264
name: "mutable_key_type",
12651265
group: "correctness",
1266-
desc: "Check for mutable Map/Set key type",
1266+
desc: "Check for mutable `Map`/`Set` key type",
12671267
deprecation: None,
12681268
module: "mut_key",
12691269
},
@@ -1375,7 +1375,7 @@ pub const ALL_LINTS: [Lint; 344] = [
13751375
Lint {
13761376
name: "neg_multiply",
13771377
group: "style",
1378-
desc: "multiplying integers with -1",
1378+
desc: "multiplying integers with `-1`",
13791379
deprecation: None,
13801380
module: "neg_multiply",
13811381
},
@@ -1473,7 +1473,7 @@ pub const ALL_LINTS: [Lint; 344] = [
14731473
Lint {
14741474
name: "option_map_unit_fn",
14751475
group: "complexity",
1476-
desc: "using `option.map(f)`, where f is a function or closure that returns ()",
1476+
desc: "using `option.map(f)`, where `f` is a function or closure that returns `()`",
14771477
deprecation: None,
14781478
module: "map_unit_fn",
14791479
},
@@ -1543,7 +1543,7 @@ pub const ALL_LINTS: [Lint; 344] = [
15431543
Lint {
15441544
name: "panicking_unwrap",
15451545
group: "correctness",
1546-
desc: "checks for calls of unwrap[_err]() that will always fail",
1546+
desc: "checks for calls of `unwrap[_err]()` that will always fail",
15471547
deprecation: None,
15481548
module: "unwrap",
15491549
},
@@ -1739,7 +1739,7 @@ pub const ALL_LINTS: [Lint; 344] = [
17391739
Lint {
17401740
name: "result_map_unit_fn",
17411741
group: "complexity",
1742-
desc: "using `result.map(f)`, where f is a function or closure that returns ()",
1742+
desc: "using `result.map(f)`, where `f` is a function or closure that returns `()`",
17431743
deprecation: None,
17441744
module: "map_unit_fn",
17451745
},
@@ -1767,7 +1767,7 @@ pub const ALL_LINTS: [Lint; 344] = [
17671767
Lint {
17681768
name: "same_functions_in_if_condition",
17691769
group: "pedantic",
1770-
desc: "consecutive `ifs` with the same function call",
1770+
desc: "consecutive `if`s with the same function call",
17711771
deprecation: None,
17721772
module: "copies",
17731773
},
@@ -1837,14 +1837,14 @@ pub const ALL_LINTS: [Lint; 344] = [
18371837
Lint {
18381838
name: "single_match",
18391839
group: "style",
1840-
desc: "a match statement with a single nontrivial arm (i.e., where the other arm is `_ => {}`) instead of `if let`",
1840+
desc: "a `match` statement with a single nontrivial arm (i.e., where the other arm is `_ => {}`) instead of `if let`",
18411841
deprecation: None,
18421842
module: "matches",
18431843
},
18441844
Lint {
18451845
name: "single_match_else",
18461846
group: "pedantic",
1847-
desc: "a match statement with two arms where the second arm\'s pattern is a placeholder instead of a specific match pattern",
1847+
desc: "a `match` statement with two arms where the second arm\'s pattern is a placeholder instead of a specific match pattern",
18481848
deprecation: None,
18491849
module: "matches",
18501850
},
@@ -2152,7 +2152,7 @@ pub const ALL_LINTS: [Lint; 344] = [
21522152
Lint {
21532153
name: "unnecessary_unwrap",
21542154
group: "complexity",
2155-
desc: "checks for calls of unwrap[_err]() that cannot fail",
2155+
desc: "checks for calls of `unwrap[_err]()` that cannot fail",
21562156
deprecation: None,
21572157
module: "unwrap",
21582158
},
@@ -2383,7 +2383,7 @@ pub const ALL_LINTS: [Lint; 344] = [
23832383
Lint {
23842384
name: "zero_divided_by_zero",
23852385
group: "complexity",
2386-
desc: "usage of `0.0 / 0.0` to obtain NaN instead of std::f32::NaN or std::f64::NaN",
2386+
desc: "usage of `0.0 / 0.0` to obtain NaN instead of `std::f32::NAN` or `std::f64::NAN`",
23872387
deprecation: None,
23882388
module: "zero_div_zero",
23892389
},
@@ -2397,7 +2397,7 @@ pub const ALL_LINTS: [Lint; 344] = [
23972397
Lint {
23982398
name: "zero_ptr",
23992399
group: "style",
2400-
desc: "using 0 as *{const, mut} T",
2400+
desc: "using `0 as *{const, mut} T`",
24012401
deprecation: None,
24022402
module: "misc",
24032403
},

0 commit comments

Comments
 (0)