You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private no-mangle lints: help hint note if visibility modifier is pub
If the item is `pub`, one imagines users being confused as to why it's
not reachable/exported; a code suggestion is beyond our local knowledge
here, but we can at least offer a prose hint. (Thanks to Vadim
Petrochenkov for shooting down the present author's original bad idea
for the note text.)
While we're here, use proper HELP expectations instead of ad hoc
comments to communicate (and now, enforce) the expected suggestions in
test/ui/lint/suggestions.rs.
warning: use of deprecated attribute `no_debug`: the `#[no_debug]` attribute was an experimental feature that has been deprecated due to lack of demand. See https://github.com/rust-lang/rust/issues/29721
14
-
--> $DIR/suggestions.rs:49:1
14
+
--> $DIR/suggestions.rs:57:1
15
15
|
16
16
LL | #[no_debug] // should suggest removal of deprecated attribute
17
17
| ^^^^^^^^^^^ help: remove this attribute
18
18
|
19
19
= note: #[warn(deprecated)] on by default
20
20
21
21
warning: variable does not need to be mutable
22
-
--> $DIR/suggestions.rs:54:13
22
+
--> $DIR/suggestions.rs:64:13
23
23
|
24
-
LL | let mut a = (1); // should suggest no `mut`, no parens
0 commit comments