Skip to content

Commit 49dfac4

Browse files
committed
move "lint level defined here" into secondary note
It does not help you to understand the error, just explains why you are seeing it, so it is clearly secondary.
1 parent 89d086b commit 49dfac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ pub fn raw_struct_lint<'a>(sess: &'a Session,
462462

463463
if let Some(span) = def {
464464
let explanation = "lint level defined here";
465-
err = err.span_label(span, &explanation);
465+
err.span_note(span, &explanation);
466466
}
467467

468468
err

0 commit comments

Comments
 (0)