Prefer pub(super)
in unreachable_pub
lint suggestion
This commit is contained in:
parent
db034cee00
commit
0bc622d251
5 changed files with 307 additions and 16 deletions
|
@ -254,7 +254,8 @@ impl<'a> LintDiagnostic<'a, ()> for BuiltinUngatedAsyncFnTrackCaller<'_> {
|
|||
#[diag(lint_builtin_unreachable_pub)]
|
||||
pub(crate) struct BuiltinUnreachablePub<'a> {
|
||||
pub what: &'a str,
|
||||
#[suggestion(code = "pub(crate)")]
|
||||
pub new_vis: &'a str,
|
||||
#[suggestion(code = "{new_vis}")]
|
||||
pub suggestion: (Span, Applicability),
|
||||
#[help]
|
||||
pub help: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue