diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-09-08 17:24:24 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-09-08 17:24:24 +0100 |
commit | 4f647096665b2ca3725ba1f7415a21fbc46044bb (patch) | |
tree | c62319bde31a42a49152b6ebb187c873702dcdbf /crates/libsyntax2 | |
parent | 8c3720d4b843808b7c8de2ac87642611c993fc44 (diff) | |
parent | bae5938682978cff84826cee300d6cfad1b9dbd0 (diff) |
Merge #65
65: simplify r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/libsyntax2')
-rw-r--r-- | crates/libsyntax2/src/parser_api.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/parser_api.rs b/crates/libsyntax2/src/parser_api.rs index 7d97159dd..772d753af 100644 --- a/crates/libsyntax2/src/parser_api.rs +++ b/crates/libsyntax2/src/parser_api.rs | |||
@@ -118,7 +118,7 @@ impl<'t> Parser<'t> { | |||
118 | pub(crate) fn err_recover(&mut self, message: &str, recovery: TokenSet) { | 118 | pub(crate) fn err_recover(&mut self, message: &str, recovery: TokenSet) { |
119 | if self.at(SyntaxKind::L_CURLY) | 119 | if self.at(SyntaxKind::L_CURLY) |
120 | || self.at(SyntaxKind::R_CURLY) | 120 | || self.at(SyntaxKind::R_CURLY) |
121 | || recovery.contains(self.current()) { | 121 | || self.at_ts(recovery) { |
122 | self.error(message); | 122 | self.error(message); |
123 | } else { | 123 | } else { |
124 | let m = self.start(); | 124 | let m = self.start(); |