mirror of https://github.com/rwf2/Rocket.git
Move lint note message to correct spot.
This commit is contained in:
parent
391628dea9
commit
d23a0fa80a
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue