diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-18 18:38:36 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-24 21:32:49 +0200 |
| commit | 8f6a0cdb0fd453580bed74586c6930b1498aa26f (patch) | |
| tree | b8ca6c95d5f67cc4f65c30f0481e704a72d37446 /src/libsyntax/parse/parser | |
| parent | 39f5e5bec42a4c05588db45d12ab9aafc01776aa (diff) | |
| download | rust-8f6a0cdb0fd453580bed74586c6930b1498aa26f.tar.gz rust-8f6a0cdb0fd453580bed74586c6930b1498aa26f.zip | |
parser: document `ban_unexpected_or_or`.
Diffstat (limited to 'src/libsyntax/parse/parser')
| -rw-r--r-- | src/libsyntax/parse/parser/pat.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser/pat.rs b/src/libsyntax/parse/parser/pat.rs index 680a5872056..8fab8884ca0 100644 --- a/src/libsyntax/parse/parser/pat.rs +++ b/src/libsyntax/parse/parser/pat.rs @@ -90,6 +90,7 @@ impl<'a> Parser<'a> { } } + /// We have parsed `||` instead of `|`. Error and suggest `|` instead. fn ban_unexpected_or_or(&mut self) { self.struct_span_err(self.token.span, "unexpected token `||` after pattern") .span_suggestion( |
