aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-08 17:16:11 +0100
committerAleksey Kladov <[email protected]>2018-09-08 17:16:11 +0100
commitf19a82beac18b688faa5cdb1a355485d2e429b60 (patch)
tree14e8e1827d1e1d195bd5688df95a186d9dc2cae6 /crates/libsyntax2/src
parentba4a697d8cb577c03c84c0c91a25ecbeaa9c68e6 (diff)
simplify
Diffstat (limited to 'crates/libsyntax2/src')
-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();