diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-05-23 15:20:46 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-05-23 19:35:08 -0700 |
| commit | 4c9dace5d56123eef470896110f593af93180c45 (patch) | |
| tree | ca9a4043354415fdaa357a637d8bdd194c8062fe /src/libsyntax/parse/comments.rs | |
| parent | c329a1fcdc6a4a2931409540c8173a112fe63395 (diff) | |
Make most lexer errors non-fatal
Most errors that arise in the lexer can be recovered from. This allows for more than one syntax error to be reported at a time.
Diffstat (limited to 'src/libsyntax/parse/comments.rs')
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 5fc214109c2..63b1bf44061 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -291,7 +291,7 @@ fn read_block_comment(rdr: &mut StringReader, while level > 0 { debug!("=== block comment level {}", level); if is_eof(rdr) { - rdr.fatal("unterminated block comment".to_strbuf()); + rdr.fatal("unterminated block comment"); } if rdr.curr_is('\n') { trim_whitespace_prefix_and_push_line(&mut lines, |
