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: issue suggestion for restricted visibility
This is probably quite a lot less likely to come up in practice than the
"inherited" (no visibility keyword) case, but now that we have
visibility spans in the HIR, we can do this, and it presumably doesn't
hurt to be exhaustive. (Who can say but that the attention to detail
just might knock someone's socks off, someday, somewhere?)
This is inspired by #47383.
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:43:1
14
+
--> $DIR/suggestions.rs:49: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:48:13
22
+
--> $DIR/suggestions.rs:54:13
23
23
|
24
24
LL | let mut a = (1); // should suggest no `mut`, no parens
0 commit comments