From 1dd87dcfeaec795f67ddfeca58e13d9eed909684 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 23 Oct 2015 18:33:19 -0700 Subject: Don't use panicking helpers in Parser. --- src/libsyntax/parse/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') 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 { panictry!(self.parse_expr_nopanic()) } -- cgit 1.4.1-3-g733a5