Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed Err by passing "err"
  • Loading branch information
colinmarsh19 authored Nov 25, 2017
commit 306f4da69a89f45b9c06ac742f337e6de0445845
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5490,7 +5490,7 @@ impl<'a> Parser<'a> {
if token_str == ";" {
err.note("consider removing the semicolon");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this into a span_suggestion_short(span, msg, "".to_string()), so that the output points at it and tools depending on the RLS can apply the change automatically.

}
return Err();
return Err(err);
}

let hi = if self.span == syntax_pos::DUMMY_SP {
Expand Down