aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-09-08 17:24:24 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-09-08 17:24:24 +0100
commit4f647096665b2ca3725ba1f7415a21fbc46044bb (patch)
treec62319bde31a42a49152b6ebb187c873702dcdbf /crates
parent8c3720d4b843808b7c8de2ac87642611c993fc44 (diff)
parentbae5938682978cff84826cee300d6cfad1b9dbd0 (diff)
Merge #65
65: simplify r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/libsyntax2/src/parser_api.rs2
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();