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
1 parent b7178ef commit 92d66a1Copy full SHA for 92d66a1
src/libsyntax/parse/parser/pat.rs
@@ -16,6 +16,10 @@ type Expected = Option<&'static str>;
16
17
impl<'a> Parser<'a> {
18
/// Parses a pattern.
19
+ ///
20
+ /// Corresponds to `pat<no_top_alt>` in RFC 2535 and does not admit or-patterns
21
+ /// at the top level. Used when parsing the parameters of lambda expressions,
22
+ /// functions, function pointers, and `pat` macro fragments.
23
pub fn parse_pat(&mut self, expected: Expected) -> PResult<'a, P<Pat>> {
24
self.parse_pat_with_range_pat(true, expected)
25
}
0 commit comments