From 6fd9ede0cd3a3c73e44a8fdbbb3cabfb622d2a7f Mon Sep 17 00:00:00 2001 From: PSeitz Date: Mon, 11 Jun 2018 21:19:12 +0200 Subject: [PATCH] Make span_fatal and parse_block public span_fatal and parse_block were made private in #51265. These methods are used in stainless. Related #51498 #51504 --- src/libsyntax/parse/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 97fcf70f531..cdb2e77dd76 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1198,7 +1198,7 @@ impl<'a> Parser<'a> { pub fn fatal(&self, m: &str) -> DiagnosticBuilder<'a> { self.sess.span_diagnostic.struct_span_fatal(self.span, m) } - fn span_fatal>(&self, sp: S, m: &str) -> DiagnosticBuilder<'a> { + pub fn span_fatal>(&self, sp: S, m: &str) -> DiagnosticBuilder<'a> { self.sess.span_diagnostic.struct_span_fatal(sp, m) } fn span_fatal_err>(&self, sp: S, err: Error) -> DiagnosticBuilder<'a> { @@ -2469,7 +2469,7 @@ impl<'a> Parser<'a> { } /// Parse a block or unsafe block - fn parse_block_expr(&mut self, opt_label: Option