Skip to content

Commit a1aae29

Browse files
committed
Auto merge of #51508 - PSeitz:master, r=Mark-Simulacrum
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
2 parents 56d9bfd + 6fd9ede commit a1aae29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ impl<'a> Parser<'a> {
11981198
pub fn fatal(&self, m: &str) -> DiagnosticBuilder<'a> {
11991199
self.sess.span_diagnostic.struct_span_fatal(self.span, m)
12001200
}
1201-
fn span_fatal<S: Into<MultiSpan>>(&self, sp: S, m: &str) -> DiagnosticBuilder<'a> {
1201+
pub fn span_fatal<S: Into<MultiSpan>>(&self, sp: S, m: &str) -> DiagnosticBuilder<'a> {
12021202
self.sess.span_diagnostic.struct_span_fatal(sp, m)
12031203
}
12041204
fn span_fatal_err<S: Into<MultiSpan>>(&self, sp: S, err: Error) -> DiagnosticBuilder<'a> {
@@ -2469,7 +2469,7 @@ impl<'a> Parser<'a> {
24692469
}
24702470

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

0 commit comments

Comments
 (0)