@@ -87,7 +87,7 @@ pub const ALL_LINTS: [Lint; 344] = [
87
87
Lint {
88
88
name : "borrow_interior_mutable_const" ,
89
89
group : "correctness" ,
90
- desc : "referencing const with interior mutability" ,
90
+ desc : "referencing ` const` with interior mutability" ,
91
91
deprecation : None ,
92
92
module : "non_copy_const" ,
93
93
} ,
@@ -178,7 +178,7 @@ pub const ALL_LINTS: [Lint; 344] = [
178
178
Lint {
179
179
name : "char_lit_as_u8" ,
180
180
group : "complexity" ,
181
- desc : "casting a character literal to u8 truncates" ,
181
+ desc : "casting a character literal to `u8` truncates" ,
182
182
deprecation : None ,
183
183
module : "types" ,
184
184
} ,
@@ -227,7 +227,7 @@ pub const ALL_LINTS: [Lint; 344] = [
227
227
Lint {
228
228
name : "cmp_nan" ,
229
229
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" ,
231
231
deprecation : None ,
232
232
module : "misc" ,
233
233
} ,
@@ -304,14 +304,14 @@ pub const ALL_LINTS: [Lint; 344] = [
304
304
Lint {
305
305
name : "declare_interior_mutable_const" ,
306
306
group : "correctness" ,
307
- desc : "declaring const with interior mutability" ,
307
+ desc : "declaring ` const` with interior mutability" ,
308
308
deprecation : None ,
309
309
module : "non_copy_const" ,
310
310
} ,
311
311
Lint {
312
312
name : "default_trait_access" ,
313
313
group : "pedantic" ,
314
- desc : "checks for literal calls to Default::default()" ,
314
+ desc : "checks for literal calls to ` Default::default()` " ,
315
315
deprecation : None ,
316
316
module : "default_trait_access" ,
317
317
} ,
@@ -423,7 +423,7 @@ pub const ALL_LINTS: [Lint; 344] = [
423
423
Lint {
424
424
name : "else_if_without_else" ,
425
425
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" ,
427
427
deprecation : None ,
428
428
module : "else_if_without_else" ,
429
429
} ,
@@ -710,14 +710,14 @@ pub const ALL_LINTS: [Lint; 344] = [
710
710
Lint {
711
711
name : "if_same_then_else" ,
712
712
group : "correctness" ,
713
- desc : "if with the same * then* and * else* blocks" ,
713
+ desc : "`if` with the same ` then` and ` else` blocks" ,
714
714
deprecation : None ,
715
715
module : "copies" ,
716
716
} ,
717
717
Lint {
718
718
name : "ifs_same_cond" ,
719
719
group : "correctness" ,
720
- desc : "consecutive `ifs` with the same condition" ,
720
+ desc : "consecutive `if`s with the same condition" ,
721
721
deprecation : None ,
722
722
module : "copies" ,
723
723
} ,
@@ -766,7 +766,7 @@ pub const ALL_LINTS: [Lint; 344] = [
766
766
Lint {
767
767
name : "infallible_destructuring_match" ,
768
768
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`" ,
770
770
deprecation : None ,
771
771
module : "infallible_destructuring_match" ,
772
772
} ,
@@ -787,7 +787,7 @@ pub const ALL_LINTS: [Lint; 344] = [
787
787
Lint {
788
788
name : "inherent_to_string_shadow_display" ,
789
789
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" ,
791
791
deprecation : None ,
792
792
module : "inherent_to_string" ,
793
793
} ,
@@ -808,7 +808,7 @@ pub const ALL_LINTS: [Lint; 344] = [
808
808
Lint {
809
809
name : "int_plus_one" ,
810
810
group : "complexity" ,
811
- desc : "instead of using x >= y + 1, use x > y" ,
811
+ desc : "instead of using ` x >= y + 1` , use ` x > y` " ,
812
812
deprecation : None ,
813
813
module : "int_plus_one" ,
814
814
} ,
@@ -948,21 +948,21 @@ pub const ALL_LINTS: [Lint; 344] = [
948
948
Lint {
949
949
name : "let_underscore_must_use" ,
950
950
group : "restriction" ,
951
- desc : "non-binding let on a #[must_use] expression" ,
951
+ desc : "non-binding let on a ` #[must_use]` expression" ,
952
952
deprecation : None ,
953
953
module : "let_underscore" ,
954
954
} ,
955
955
Lint {
956
956
name : "let_unit_value" ,
957
957
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" ,
959
959
deprecation : None ,
960
960
module : "types" ,
961
961
} ,
962
962
Lint {
963
963
name : "linkedlist" ,
964
964
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` " ,
966
966
deprecation : None ,
967
967
module : "types" ,
968
968
} ,
@@ -1039,28 +1039,28 @@ pub const ALL_LINTS: [Lint; 344] = [
1039
1039
Lint {
1040
1040
name : "match_as_ref" ,
1041
1041
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`" ,
1043
1043
deprecation : None ,
1044
1044
module : "matches" ,
1045
1045
} ,
1046
1046
Lint {
1047
1047
name : "match_bool" ,
1048
1048
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" ,
1050
1050
deprecation : None ,
1051
1051
module : "matches" ,
1052
1052
} ,
1053
1053
Lint {
1054
1054
name : "match_overlapping_arm" ,
1055
1055
group : "style" ,
1056
- desc : "a match with overlapping arms" ,
1056
+ desc : "a ` match` with overlapping arms" ,
1057
1057
deprecation : None ,
1058
1058
module : "matches" ,
1059
1059
} ,
1060
1060
Lint {
1061
1061
name : "match_ref_pats" ,
1062
1062
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" ,
1064
1064
deprecation : None ,
1065
1065
module : "matches" ,
1066
1066
} ,
@@ -1074,7 +1074,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1074
1074
Lint {
1075
1075
name : "match_wild_err_arm" ,
1076
1076
group : "style" ,
1077
- desc : "a match with `Err(_)` arm and take drastic actions" ,
1077
+ desc : "a ` match` with `Err(_)` arm and take drastic actions" ,
1078
1078
deprecation : None ,
1079
1079
module : "matches" ,
1080
1080
} ,
@@ -1088,7 +1088,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1088
1088
Lint {
1089
1089
name : "mem_discriminant_non_enum" ,
1090
1090
group : "correctness" ,
1091
- desc : "calling mem::descriminant on non-enum type" ,
1091
+ desc : "calling ` mem::descriminant` on non-enum type" ,
1092
1092
deprecation : None ,
1093
1093
module : "mem_discriminant" ,
1094
1094
} ,
@@ -1158,7 +1158,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1158
1158
Lint {
1159
1159
name : "missing_inline_in_public_items" ,
1160
1160
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...)" ,
1162
1162
deprecation : None ,
1163
1163
module : "missing_inline" ,
1164
1164
} ,
@@ -1263,7 +1263,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1263
1263
Lint {
1264
1264
name : "mutable_key_type" ,
1265
1265
group : "correctness" ,
1266
- desc : "Check for mutable Map/ Set key type" ,
1266
+ desc : "Check for mutable ` Map`/` Set` key type" ,
1267
1267
deprecation : None ,
1268
1268
module : "mut_key" ,
1269
1269
} ,
@@ -1375,7 +1375,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1375
1375
Lint {
1376
1376
name : "neg_multiply" ,
1377
1377
group : "style" ,
1378
- desc : "multiplying integers with -1 " ,
1378
+ desc : "multiplying integers with `-1` " ,
1379
1379
deprecation : None ,
1380
1380
module : "neg_multiply" ,
1381
1381
} ,
@@ -1473,7 +1473,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1473
1473
Lint {
1474
1474
name : "option_map_unit_fn" ,
1475
1475
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 `()` " ,
1477
1477
deprecation : None ,
1478
1478
module : "map_unit_fn" ,
1479
1479
} ,
@@ -1543,7 +1543,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1543
1543
Lint {
1544
1544
name : "panicking_unwrap" ,
1545
1545
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" ,
1547
1547
deprecation : None ,
1548
1548
module : "unwrap" ,
1549
1549
} ,
@@ -1739,7 +1739,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1739
1739
Lint {
1740
1740
name : "result_map_unit_fn" ,
1741
1741
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 `()` " ,
1743
1743
deprecation : None ,
1744
1744
module : "map_unit_fn" ,
1745
1745
} ,
@@ -1767,7 +1767,7 @@ pub const ALL_LINTS: [Lint; 344] = [
1767
1767
Lint {
1768
1768
name : "same_functions_in_if_condition" ,
1769
1769
group : "pedantic" ,
1770
- desc : "consecutive `ifs` with the same function call" ,
1770
+ desc : "consecutive `if`s with the same function call" ,
1771
1771
deprecation : None ,
1772
1772
module : "copies" ,
1773
1773
} ,
@@ -1837,14 +1837,14 @@ pub const ALL_LINTS: [Lint; 344] = [
1837
1837
Lint {
1838
1838
name : "single_match" ,
1839
1839
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`" ,
1841
1841
deprecation : None ,
1842
1842
module : "matches" ,
1843
1843
} ,
1844
1844
Lint {
1845
1845
name : "single_match_else" ,
1846
1846
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" ,
1848
1848
deprecation : None ,
1849
1849
module : "matches" ,
1850
1850
} ,
@@ -2152,7 +2152,7 @@ pub const ALL_LINTS: [Lint; 344] = [
2152
2152
Lint {
2153
2153
name : "unnecessary_unwrap" ,
2154
2154
group : "complexity" ,
2155
- desc : "checks for calls of unwrap[_err]() that cannot fail" ,
2155
+ desc : "checks for calls of ` unwrap[_err]()` that cannot fail" ,
2156
2156
deprecation : None ,
2157
2157
module : "unwrap" ,
2158
2158
} ,
@@ -2383,7 +2383,7 @@ pub const ALL_LINTS: [Lint; 344] = [
2383
2383
Lint {
2384
2384
name : "zero_divided_by_zero" ,
2385
2385
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` " ,
2387
2387
deprecation : None ,
2388
2388
module : "zero_div_zero" ,
2389
2389
} ,
@@ -2397,7 +2397,7 @@ pub const ALL_LINTS: [Lint; 344] = [
2397
2397
Lint {
2398
2398
name : "zero_ptr" ,
2399
2399
group : "style" ,
2400
- desc : "using 0 as *{const, mut} T" ,
2400
+ desc : "using ` 0 as *{const, mut} T` " ,
2401
2401
deprecation : None ,
2402
2402
module : "misc" ,
2403
2403
} ,
0 commit comments