Skip to content

Commit

Permalink
Make span_fatal and parse_block public
Browse files Browse the repository at this point in the history
span_fatal and parse_block  were made private in #51265. These methods are used in stainless.

Related #51498 #51504
  • Loading branch information
PSeitz committed Jun 11, 2018
1 parent 0b7c9e7 commit 6fd9ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/parse/parser.rs
Expand Up @@ -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<S: Into<MultiSpan>>(&self, sp: S, m: &str) -> DiagnosticBuilder<'a> {
pub fn span_fatal<S: Into<MultiSpan>>(&self, sp: S, m: &str) -> DiagnosticBuilder<'a> {
self.sess.span_diagnostic.struct_span_fatal(sp, m)
}
fn span_fatal_err<S: Into<MultiSpan>>(&self, sp: S, err: Error) -> DiagnosticBuilder<'a> {
Expand Down Expand Up @@ -2469,7 +2469,7 @@ impl<'a> Parser<'a> {
}

/// Parse a block or unsafe block
fn parse_block_expr(&mut self, opt_label: Option<Label>,
pub fn parse_block_expr(&mut self, opt_label: Option<Label>,
lo: Span, blk_mode: BlockCheckMode,
outer_attrs: ThinVec<Attribute>)
-> PResult<'a, P<Expr>> {
Expand Down

0 comments on commit 6fd9ede

Please sign in to comment.