Remove the redundant span_label.
This commit is contained in:
parent
d336f022d5
commit
ed20f3b5c0
2 changed files with 1 additions and 5 deletions
|
@ -3158,7 +3158,6 @@ impl<'a> Parser<'a> {
|
|||
let in_span = self.prev_span.between(self.span);
|
||||
let mut err = self.sess.span_diagnostic
|
||||
.struct_span_err(in_span, "missing `in` in `for` loop");
|
||||
err.span_label(in_span, "expected `in` here");
|
||||
err.span_suggestion_short(in_span, "try adding `in` here", " in ".into());
|
||||
err.emit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue