We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Parser::parse_expr_cond
1 parent f7b4354 commit f13166fCopy full SHA for f13166f
compiler/rustc_parse/src/parser/expr.rs
@@ -2588,7 +2588,7 @@ impl<'a> Parser<'a> {
2588
}
2589
2590
/// Parses the condition of a `if` or `while` expression.
2591
- fn parse_expr_cond(&mut self) -> PResult<'a, P<Expr>> {
+ pub fn parse_expr_cond(&mut self) -> PResult<'a, P<Expr>> {
2592
let attrs = self.parse_outer_attributes()?;
2593
let (mut cond, _) =
2594
self.parse_expr_res(Restrictions::NO_STRUCT_LITERAL | Restrictions::ALLOW_LET, attrs)?;
0 commit comments