Move lint note message to correct spot.

This commit is contained in:
Sergio Benitez 2017-02-03 17:38:51 -08:00
parent 391628dea9
commit d23a0fa80a
1 changed files with 1 additions and 1 deletions

View File

@ -174,10 +174,10 @@ pub fn msg_and_help<'a, T: LintContext<'a>>(cx: &T,
help_sp: Option<Span>, help_sp: Option<Span>,
help: &str) { help: &str) {
let mut b = cx.struct_span_lint(lint, msg_sp, msg); let mut b = cx.struct_span_lint(lint, msg_sp, msg);
b.note(note);
if let Some(span) = help_sp { if let Some(span) = help_sp {
b.span_help(span, help); b.span_help(span, help);
} }
b.note(note);
b.emit(); b.emit();
} }