Skip to content

Commit

Permalink
rust-lang#49133 - Reworded the Error message: "pub not needed here"…
Browse files Browse the repository at this point in the history
… message
  • Loading branch information
dileepbapat committed Mar 19, 2018
1 parent aafe7d8 commit 3799866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_passes/ast_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<'a> AstValidator<'a> {
E0449,
"unnecessary visibility qualifier");
if vis.node == VisibilityKind::Public {
err.span_label(vis.span, "`pub` not needed here");
err.span_label(vis.span, "`pub` not permitted here because it's implied");
}
if let Some(note) = note {
err.note(note);
Expand Down

0 comments on commit 3799866

Please sign in to comment.