@@ -90,7 +90,7 @@ warning: floating-point literals cannot be used in patterns
90
90
4 | 5.0 => {},
91
91
| ^^^
92
92
|
93
- = note: #[warn(illegal_floating_point_literal_pattern)] on by default
93
+ = note: ` #[warn(illegal_floating_point_literal_pattern)]` on by default
94
94
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
95
95
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
96
96
```
@@ -109,7 +109,7 @@ extern "C" {
109
109
This will produce:
110
110
111
111
``` 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
113
113
--> src/main.rs:2:20
114
114
|
115
115
2 | static STATIC: String;
@@ -146,7 +146,7 @@ warning: cannot specify lifetime arguments explicitly if late bound lifetime par
146
146
8 | S.late::<'static>(&0, &0);
147
147
| ^^^^^^^
148
148
|
149
- = note: #[warn(late_bound_lifetime_arguments)] on by default
149
+ = note: ` #[warn(late_bound_lifetime_arguments)]` on by default
150
150
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
151
151
= note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
152
152
```
@@ -327,7 +327,7 @@ warning: patterns aren't allowed in methods without bodies
327
327
2 | fn foo(mut arg: u8);
328
328
| ^^^^^^^
329
329
|
330
- = note: #[warn(patterns_in_fns_without_body)] on by default
330
+ = note: ` #[warn(patterns_in_fns_without_body)]` on by default
331
331
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
332
332
= note: for more information, see issue #35203 <https://github.com/rust-lang/rust/issues/35203>
333
333
```
@@ -406,7 +406,7 @@ fn foo() {}
406
406
This will produce:
407
407
408
408
``` text
409
- warning: function is marked #[no_mangle], but not exported
409
+ warning: function is marked ` #[no_mangle]` , but not exported
410
410
--> src/main.rs:2:1
411
411
|
412
412
2 | fn foo() {}
@@ -433,7 +433,7 @@ static X: i32 = 4;
433
433
This will produce:
434
434
435
435
``` text
436
- warning: static is marked #[no_mangle], but not exported
436
+ warning: static is marked ` #[no_mangle]` , but not exported
437
437
--> src/main.rs:2:1
438
438
|
439
439
2 | static X: i32 = 4;
@@ -496,7 +496,7 @@ warning: borrow of packed field requires unsafe function or block (error E0133)
496
496
11 | let y = &x.data.0;
497
497
| ^^^^^^^^^
498
498
|
499
- = note: #[warn(safe_packed_borrows)] on by default
499
+ = note: ` #[warn(safe_packed_borrows)]` on by default
500
500
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
501
501
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
502
502
```
@@ -542,7 +542,7 @@ warning: bounds on generic parameters are not enforced in type aliases
542
542
2 | type SendVec<T: Send> = Vec<T>;
543
543
| ^^^^
544
544
|
545
- = note: #[warn(type_alias_bounds)] on by default
545
+ = note: ` #[warn(type_alias_bounds)]` on by default
546
546
= help: the bound will not be checked when the type alias is used, and should be removed
547
547
```
548
548
@@ -567,7 +567,7 @@ warning: type annotations needed
567
567
4 | if data.is_null() {}
568
568
| ^^^^^^^
569
569
|
570
- = note: #[warn(tyvar_behind_raw_pointer)] on by default
570
+ = note: ` #[warn(tyvar_behind_raw_pointer)]` on by default
571
571
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
572
572
= note: for more information, see issue #46906 <https://github.com/rust-lang/rust/issues/46906>
573
573
```
@@ -787,7 +787,7 @@ warning: doc comment not used by rustdoc
787
787
788
788
## unused-features
789
789
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.
791
791
To fix this, simply remove the feature flag.
792
792
793
793
## unused-imports
@@ -839,7 +839,7 @@ warning: unused macro definition
839
839
840
840
## unused-must-use
841
841
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
843
843
example code that triggers this lint:
844
844
845
845
``` rust
0 commit comments