We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse_pat_with_or
1 parent 7b59b4f commit dc5bbafCopy full SHA for dc5bbaf
src/libsyntax/parse/parser/pat.rs
@@ -91,7 +91,8 @@ impl<'a> Parser<'a> {
91
Ok(())
92
}
93
94
- /// Parses a pattern, that may be a or-pattern (e.g. `Some(Foo | Bar)`).
+ /// Parses a pattern, that may be a or-pattern (e.g. `Foo | Bar` in `Some(Foo | Bar)`).
95
+ /// Corresponds to `pat<allow_top_alt>` in RFC 2535.
96
fn parse_pat_with_or(
97
&mut self,
98
expected: Expected,
0 commit comments