@@ -87,7 +87,7 @@ pub const ALL_LINTS: [Lint; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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
} ,
@@ -955,21 +955,21 @@ pub const ALL_LINTS: [Lint; 345] = [
955
955
Lint {
956
956
name : "let_underscore_must_use" ,
957
957
group : "restriction" ,
958
- desc : "non-binding let on a #[must_use] expression" ,
958
+ desc : "non-binding let on a ` #[must_use]` expression" ,
959
959
deprecation : None ,
960
960
module : "let_underscore" ,
961
961
} ,
962
962
Lint {
963
963
name : "let_unit_value" ,
964
964
group : "style" ,
965
- desc : "creating a let binding to a value of unit type, which usually can\' t be used afterwards" ,
965
+ desc : "creating a ` let` binding to a value of unit type, which usually can\' t be used afterwards" ,
966
966
deprecation : None ,
967
967
module : "types" ,
968
968
} ,
969
969
Lint {
970
970
name : "linkedlist" ,
971
971
group : "pedantic" ,
972
- desc : "usage of LinkedList, usually a vector is faster, or a more specialized data structure like a VecDeque" ,
972
+ desc : "usage of LinkedList, usually a vector is faster, or a more specialized data structure like a ` VecDeque` " ,
973
973
deprecation : None ,
974
974
module : "types" ,
975
975
} ,
@@ -1046,28 +1046,28 @@ pub const ALL_LINTS: [Lint; 345] = [
1046
1046
Lint {
1047
1047
name : "match_as_ref" ,
1048
1048
group : "complexity" ,
1049
- desc : "a match on an Option value instead of using `as_ref()` or `as_mut`" ,
1049
+ desc : "a ` match` on an Option value instead of using `as_ref()` or `as_mut`" ,
1050
1050
deprecation : None ,
1051
1051
module : "matches" ,
1052
1052
} ,
1053
1053
Lint {
1054
1054
name : "match_bool" ,
1055
1055
group : "style" ,
1056
- desc : "a match on a boolean expression instead of an `if..else` block" ,
1056
+ desc : "a ` match` on a boolean expression instead of an `if..else` block" ,
1057
1057
deprecation : None ,
1058
1058
module : "matches" ,
1059
1059
} ,
1060
1060
Lint {
1061
1061
name : "match_overlapping_arm" ,
1062
1062
group : "style" ,
1063
- desc : "a match with overlapping arms" ,
1063
+ desc : "a ` match` with overlapping arms" ,
1064
1064
deprecation : None ,
1065
1065
module : "matches" ,
1066
1066
} ,
1067
1067
Lint {
1068
1068
name : "match_ref_pats" ,
1069
1069
group : "style" ,
1070
- desc : "a match or `if let` with all arms prefixed with `&` instead of deref-ing the match expression" ,
1070
+ desc : "a ` match` or `if let` with all arms prefixed with `&` instead of deref-ing the match expression" ,
1071
1071
deprecation : None ,
1072
1072
module : "matches" ,
1073
1073
} ,
@@ -1081,7 +1081,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1081
1081
Lint {
1082
1082
name : "match_wild_err_arm" ,
1083
1083
group : "style" ,
1084
- desc : "a match with `Err(_)` arm and take drastic actions" ,
1084
+ desc : "a ` match` with `Err(_)` arm and take drastic actions" ,
1085
1085
deprecation : None ,
1086
1086
module : "matches" ,
1087
1087
} ,
@@ -1095,7 +1095,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1095
1095
Lint {
1096
1096
name : "mem_discriminant_non_enum" ,
1097
1097
group : "correctness" ,
1098
- desc : "calling mem::descriminant on non-enum type" ,
1098
+ desc : "calling ` mem::descriminant` on non-enum type" ,
1099
1099
deprecation : None ,
1100
1100
module : "mem_discriminant" ,
1101
1101
} ,
@@ -1165,7 +1165,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1165
1165
Lint {
1166
1166
name : "missing_inline_in_public_items" ,
1167
1167
group : "restriction" ,
1168
- desc : "detects missing #[inline] attribute for public callables (functions, trait methods, methods...)" ,
1168
+ desc : "detects missing ` #[inline]` attribute for public callables (functions, trait methods, methods...)" ,
1169
1169
deprecation : None ,
1170
1170
module : "missing_inline" ,
1171
1171
} ,
@@ -1270,7 +1270,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1270
1270
Lint {
1271
1271
name : "mutable_key_type" ,
1272
1272
group : "correctness" ,
1273
- desc : "Check for mutable Map/ Set key type" ,
1273
+ desc : "Check for mutable ` Map`/` Set` key type" ,
1274
1274
deprecation : None ,
1275
1275
module : "mut_key" ,
1276
1276
} ,
@@ -1382,7 +1382,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1382
1382
Lint {
1383
1383
name : "neg_multiply" ,
1384
1384
group : "style" ,
1385
- desc : "multiplying integers with -1 " ,
1385
+ desc : "multiplying integers with `-1` " ,
1386
1386
deprecation : None ,
1387
1387
module : "neg_multiply" ,
1388
1388
} ,
@@ -1480,7 +1480,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1480
1480
Lint {
1481
1481
name : "option_map_unit_fn" ,
1482
1482
group : "complexity" ,
1483
- desc : "using `option.map(f)`, where f is a function or closure that returns () " ,
1483
+ desc : "using `option.map(f)`, where `f` is a function or closure that returns `()` " ,
1484
1484
deprecation : None ,
1485
1485
module : "map_unit_fn" ,
1486
1486
} ,
@@ -1550,7 +1550,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1550
1550
Lint {
1551
1551
name : "panicking_unwrap" ,
1552
1552
group : "correctness" ,
1553
- desc : "checks for calls of unwrap[_err]() that will always fail" ,
1553
+ desc : "checks for calls of ` unwrap[_err]()` that will always fail" ,
1554
1554
deprecation : None ,
1555
1555
module : "unwrap" ,
1556
1556
} ,
@@ -1746,7 +1746,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1746
1746
Lint {
1747
1747
name : "result_map_unit_fn" ,
1748
1748
group : "complexity" ,
1749
- desc : "using `result.map(f)`, where f is a function or closure that returns () " ,
1749
+ desc : "using `result.map(f)`, where `f` is a function or closure that returns `()` " ,
1750
1750
deprecation : None ,
1751
1751
module : "map_unit_fn" ,
1752
1752
} ,
@@ -1774,7 +1774,7 @@ pub const ALL_LINTS: [Lint; 345] = [
1774
1774
Lint {
1775
1775
name : "same_functions_in_if_condition" ,
1776
1776
group : "pedantic" ,
1777
- desc : "consecutive `ifs` with the same function call" ,
1777
+ desc : "consecutive `if`s with the same function call" ,
1778
1778
deprecation : None ,
1779
1779
module : "copies" ,
1780
1780
} ,
@@ -1844,14 +1844,14 @@ pub const ALL_LINTS: [Lint; 345] = [
1844
1844
Lint {
1845
1845
name : "single_match" ,
1846
1846
group : "style" ,
1847
- desc : "a match statement with a single nontrivial arm (i.e., where the other arm is `_ => {}`) instead of `if let`" ,
1847
+ desc : "a ` match` statement with a single nontrivial arm (i.e., where the other arm is `_ => {}`) instead of `if let`" ,
1848
1848
deprecation : None ,
1849
1849
module : "matches" ,
1850
1850
} ,
1851
1851
Lint {
1852
1852
name : "single_match_else" ,
1853
1853
group : "pedantic" ,
1854
- desc : "a match statement with two arms where the second arm\' s pattern is a placeholder instead of a specific match pattern" ,
1854
+ desc : "a ` match` statement with two arms where the second arm\' s pattern is a placeholder instead of a specific match pattern" ,
1855
1855
deprecation : None ,
1856
1856
module : "matches" ,
1857
1857
} ,
@@ -2159,7 +2159,7 @@ pub const ALL_LINTS: [Lint; 345] = [
2159
2159
Lint {
2160
2160
name : "unnecessary_unwrap" ,
2161
2161
group : "complexity" ,
2162
- desc : "checks for calls of unwrap[_err]() that cannot fail" ,
2162
+ desc : "checks for calls of ` unwrap[_err]()` that cannot fail" ,
2163
2163
deprecation : None ,
2164
2164
module : "unwrap" ,
2165
2165
} ,
@@ -2390,7 +2390,7 @@ pub const ALL_LINTS: [Lint; 345] = [
2390
2390
Lint {
2391
2391
name : "zero_divided_by_zero" ,
2392
2392
group : "complexity" ,
2393
- desc : "usage of `0.0 / 0.0` to obtain NaN instead of std::f32::NaN or std::f64::NaN " ,
2393
+ desc : "usage of `0.0 / 0.0` to obtain NaN instead of ` std::f32::NAN` or ` std::f64::NAN` " ,
2394
2394
deprecation : None ,
2395
2395
module : "zero_div_zero" ,
2396
2396
} ,
@@ -2404,7 +2404,7 @@ pub const ALL_LINTS: [Lint; 345] = [
2404
2404
Lint {
2405
2405
name : "zero_ptr" ,
2406
2406
group : "style" ,
2407
- desc : "using 0 as *{const, mut} T" ,
2407
+ desc : "using ` 0 as *{const, mut} T` " ,
2408
2408
deprecation : None ,
2409
2409
module : "misc" ,
2410
2410
} ,
0 commit comments