diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2015-10-23 18:33:19 -0700 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2015-10-27 20:09:10 -0700 |
| commit | 1dd87dcfeaec795f67ddfeca58e13d9eed909684 (patch) | |
| tree | 1d60e670292b14026e2ab0083198cad0d46fe823 /src/libsyntax/parse/parser.rs | |
| parent | f7172490f8f5c3a9d924a1abdc5123b64c18f4ea (diff) | |
| download | rust-1dd87dcfeaec795f67ddfeca58e13d9eed909684.tar.gz rust-1dd87dcfeaec795f67ddfeca58e13d9eed909684.zip | |
Don't use panicking helpers in Parser.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 6cee7b86a61..6afcd61aa3d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -359,7 +359,8 @@ impl<'a> Parser<'a> { } // Panicing fns (for now!) - // This is so that the quote_*!() syntax extensions + // These functions are used by the quote_*!() syntax extensions, but shouldn't + // be used otherwise. pub fn parse_expr(&mut self) -> P<Expr> { panictry!(self.parse_expr_nopanic()) } |
