We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pub
1 parent aafe7d8 commit 3799866Copy full SHA for 3799866
src/librustc_passes/ast_validation.rs
@@ -67,7 +67,7 @@ impl<'a> AstValidator<'a> {
67
E0449,
68
"unnecessary visibility qualifier");
69
if vis.node == VisibilityKind::Public {
70
- err.span_label(vis.span, "`pub` not needed here");
+ err.span_label(vis.span, "`pub` not permitted here because it's implied");
71
}
72
if let Some(note) = note {
73
err.note(note);
0 commit comments