@@ -87,7 +87,7 @@ pub const ALL_LINTS: [Lint; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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; 345] = [
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 } ,
@@ -955,21 +955,21 @@ pub const ALL_LINTS: [Lint; 345] = [
955955 Lint {
956956 name : "let_underscore_must_use" ,
957957 group : "restriction" ,
958- desc : "non-binding let on a #[must_use] expression" ,
958+ desc : "non-binding let on a ` #[must_use]` expression" ,
959959 deprecation : None ,
960960 module : "let_underscore" ,
961961 } ,
962962 Lint {
963963 name : "let_unit_value" ,
964964 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" ,
966966 deprecation : None ,
967967 module : "types" ,
968968 } ,
969969 Lint {
970970 name : "linkedlist" ,
971971 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` " ,
973973 deprecation : None ,
974974 module : "types" ,
975975 } ,
@@ -1046,28 +1046,28 @@ pub const ALL_LINTS: [Lint; 345] = [
10461046 Lint {
10471047 name : "match_as_ref" ,
10481048 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`" ,
10501050 deprecation : None ,
10511051 module : "matches" ,
10521052 } ,
10531053 Lint {
10541054 name : "match_bool" ,
10551055 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" ,
10571057 deprecation : None ,
10581058 module : "matches" ,
10591059 } ,
10601060 Lint {
10611061 name : "match_overlapping_arm" ,
10621062 group : "style" ,
1063- desc : "a match with overlapping arms" ,
1063+ desc : "a ` match` with overlapping arms" ,
10641064 deprecation : None ,
10651065 module : "matches" ,
10661066 } ,
10671067 Lint {
10681068 name : "match_ref_pats" ,
10691069 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" ,
10711071 deprecation : None ,
10721072 module : "matches" ,
10731073 } ,
@@ -1081,7 +1081,7 @@ pub const ALL_LINTS: [Lint; 345] = [
10811081 Lint {
10821082 name : "match_wild_err_arm" ,
10831083 group : "style" ,
1084- desc : "a match with `Err(_)` arm and take drastic actions" ,
1084+ desc : "a ` match` with `Err(_)` arm and take drastic actions" ,
10851085 deprecation : None ,
10861086 module : "matches" ,
10871087 } ,
@@ -1095,7 +1095,7 @@ pub const ALL_LINTS: [Lint; 345] = [
10951095 Lint {
10961096 name : "mem_discriminant_non_enum" ,
10971097 group : "correctness" ,
1098- desc : "calling mem::descriminant on non-enum type" ,
1098+ desc : "calling ` mem::descriminant` on non-enum type" ,
10991099 deprecation : None ,
11001100 module : "mem_discriminant" ,
11011101 } ,
@@ -1165,7 +1165,7 @@ pub const ALL_LINTS: [Lint; 345] = [
11651165 Lint {
11661166 name : "missing_inline_in_public_items" ,
11671167 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...)" ,
11691169 deprecation : None ,
11701170 module : "missing_inline" ,
11711171 } ,
@@ -1270,7 +1270,7 @@ pub const ALL_LINTS: [Lint; 345] = [
12701270 Lint {
12711271 name : "mutable_key_type" ,
12721272 group : "correctness" ,
1273- desc : "Check for mutable Map/ Set key type" ,
1273+ desc : "Check for mutable ` Map`/` Set` key type" ,
12741274 deprecation : None ,
12751275 module : "mut_key" ,
12761276 } ,
@@ -1382,7 +1382,7 @@ pub const ALL_LINTS: [Lint; 345] = [
13821382 Lint {
13831383 name : "neg_multiply" ,
13841384 group : "style" ,
1385- desc : "multiplying integers with -1 " ,
1385+ desc : "multiplying integers with `-1` " ,
13861386 deprecation : None ,
13871387 module : "neg_multiply" ,
13881388 } ,
@@ -1480,7 +1480,7 @@ pub const ALL_LINTS: [Lint; 345] = [
14801480 Lint {
14811481 name : "option_map_unit_fn" ,
14821482 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 `()` " ,
14841484 deprecation : None ,
14851485 module : "map_unit_fn" ,
14861486 } ,
@@ -1550,7 +1550,7 @@ pub const ALL_LINTS: [Lint; 345] = [
15501550 Lint {
15511551 name : "panicking_unwrap" ,
15521552 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" ,
15541554 deprecation : None ,
15551555 module : "unwrap" ,
15561556 } ,
@@ -1746,7 +1746,7 @@ pub const ALL_LINTS: [Lint; 345] = [
17461746 Lint {
17471747 name : "result_map_unit_fn" ,
17481748 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 `()` " ,
17501750 deprecation : None ,
17511751 module : "map_unit_fn" ,
17521752 } ,
@@ -1774,7 +1774,7 @@ pub const ALL_LINTS: [Lint; 345] = [
17741774 Lint {
17751775 name : "same_functions_in_if_condition" ,
17761776 group : "pedantic" ,
1777- desc : "consecutive `ifs` with the same function call" ,
1777+ desc : "consecutive `if`s with the same function call" ,
17781778 deprecation : None ,
17791779 module : "copies" ,
17801780 } ,
@@ -1844,14 +1844,14 @@ pub const ALL_LINTS: [Lint; 345] = [
18441844 Lint {
18451845 name : "single_match" ,
18461846 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`" ,
18481848 deprecation : None ,
18491849 module : "matches" ,
18501850 } ,
18511851 Lint {
18521852 name : "single_match_else" ,
18531853 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" ,
18551855 deprecation : None ,
18561856 module : "matches" ,
18571857 } ,
@@ -2159,7 +2159,7 @@ pub const ALL_LINTS: [Lint; 345] = [
21592159 Lint {
21602160 name : "unnecessary_unwrap" ,
21612161 group : "complexity" ,
2162- desc : "checks for calls of unwrap[_err]() that cannot fail" ,
2162+ desc : "checks for calls of ` unwrap[_err]()` that cannot fail" ,
21632163 deprecation : None ,
21642164 module : "unwrap" ,
21652165 } ,
@@ -2390,7 +2390,7 @@ pub const ALL_LINTS: [Lint; 345] = [
23902390 Lint {
23912391 name : "zero_divided_by_zero" ,
23922392 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` " ,
23942394 deprecation : None ,
23952395 module : "zero_div_zero" ,
23962396 } ,
@@ -2404,7 +2404,7 @@ pub const ALL_LINTS: [Lint; 345] = [
24042404 Lint {
24052405 name : "zero_ptr" ,
24062406 group : "style" ,
2407- desc : "using 0 as *{const, mut} T" ,
2407+ desc : "using ` 0 as *{const, mut} T` " ,
24082408 deprecation : None ,
24092409 module : "misc" ,
24102410 } ,
0 commit comments