@@ -90,7 +90,7 @@ warning: floating-point literals cannot be used in patterns
90904 | 5.0 => {},
9191 | ^^^
9292 |
93- = note: #[warn(illegal_floating_point_literal_pattern)] on by default
93+ = note: ` #[warn(illegal_floating_point_literal_pattern)]` on by default
9494 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9595 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
9696```
@@ -109,7 +109,7 @@ extern "C" {
109109This will produce:
110110
111111``` text
112- warning: found struct without foreign-function-safe representation annotation in foreign module, consider adding a #[repr(C)] attribute to the type
112+ warning: found struct without foreign-function-safe representation annotation in foreign module, consider adding a ` #[repr(C)]` attribute to the type
113113 --> src/main.rs:2:20
114114 |
1151152 | static STATIC: String;
@@ -146,7 +146,7 @@ warning: cannot specify lifetime arguments explicitly if late bound lifetime par
1461468 | S.late::<'static>(&0, &0);
147147 | ^^^^^^^
148148 |
149- = note: #[warn(late_bound_lifetime_arguments)] on by default
149+ = note: ` #[warn(late_bound_lifetime_arguments)]` on by default
150150 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
151151 = note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
152152```
@@ -327,7 +327,7 @@ warning: patterns aren't allowed in methods without bodies
3273272 | fn foo(mut arg: u8);
328328 | ^^^^^^^
329329 |
330- = note: #[warn(patterns_in_fns_without_body)] on by default
330+ = note: ` #[warn(patterns_in_fns_without_body)]` on by default
331331 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
332332 = note: for more information, see issue #35203 <https://github.com/rust-lang/rust/issues/35203>
333333```
@@ -406,7 +406,7 @@ fn foo() {}
406406This will produce:
407407
408408``` text
409- warning: function is marked #[no_mangle], but not exported
409+ warning: function is marked ` #[no_mangle]` , but not exported
410410 --> src/main.rs:2:1
411411 |
4124122 | fn foo() {}
@@ -433,7 +433,7 @@ static X: i32 = 4;
433433This will produce:
434434
435435``` text
436- warning: static is marked #[no_mangle], but not exported
436+ warning: static is marked ` #[no_mangle]` , but not exported
437437 --> src/main.rs:2:1
438438 |
4394392 | static X: i32 = 4;
@@ -496,7 +496,7 @@ warning: borrow of packed field requires unsafe function or block (error E0133)
49649611 | let y = &x.data.0;
497497 | ^^^^^^^^^
498498 |
499- = note: #[warn(safe_packed_borrows)] on by default
499+ = note: ` #[warn(safe_packed_borrows)]` on by default
500500 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
501501 = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
502502```
@@ -542,7 +542,7 @@ warning: bounds on generic parameters are not enforced in type aliases
5425422 | type SendVec<T: Send> = Vec<T>;
543543 | ^^^^
544544 |
545- = note: #[warn(type_alias_bounds)] on by default
545+ = note: ` #[warn(type_alias_bounds)]` on by default
546546 = help: the bound will not be checked when the type alias is used, and should be removed
547547```
548548
@@ -567,7 +567,7 @@ warning: type annotations needed
5675674 | if data.is_null() {}
568568 | ^^^^^^^
569569 |
570- = note: #[warn(tyvar_behind_raw_pointer)] on by default
570+ = note: ` #[warn(tyvar_behind_raw_pointer)]` on by default
571571 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
572572 = note: for more information, see issue #46906 <https://github.com/rust-lang/rust/issues/46906>
573573```
@@ -787,7 +787,7 @@ warning: doc comment not used by rustdoc
787787
788788## unused-features
789789
790- This lint detects unused or unknown features found in crate-level #[ feature] directives.
790+ This lint detects unused or unknown features found in crate-level ` #[feature] ` directives.
791791To fix this, simply remove the feature flag.
792792
793793## unused-imports
@@ -839,7 +839,7 @@ warning: unused macro definition
839839
840840## unused-must-use
841841
842- This lint detects unused result of a type flagged as #[ must_use] . Some
842+ This lint detects unused result of a type flagged as ` #[must_use] ` . Some
843843example code that triggers this lint:
844844
845845``` rust
0 commit comments