diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-04-27 19:59:57 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-05-02 11:49:25 -0400 |
| commit | 49dfac487267b574c802e0bdf5a66c5ff0624340 (patch) | |
| tree | 95256aaade952f6613d379c65d264c260ef1ec5c | |
| parent | 89d086be74d5ddf21d67f2a3c27a29cca2631bba (diff) | |
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.
| -rw-r--r-- | src/librustc/lint/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs index 4ea6845b3c4..43c0e197e16 100644 --- a/src/librustc/lint/context.rs +++ b/src/librustc/lint/context.rs @@ -462,7 +462,7 @@ pub fn raw_struct_lint<'a>(sess: &'a Session, if let Some(span) = def { let explanation = "lint level defined here"; - err = err.span_label(span, &explanation); + err.span_note(span, &explanation); } err |
