diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-04 06:36:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-04 06:36:37 +0000 |
| commit | 9a7255ee2b1d06546476a4e5f727f1d1e0c54ff0 (patch) | |
| tree | efd0e5b7d344ea8f0bbc6e661bed96c17366dac2 /compiler/rustc_parse/src/parser | |
| parent | 2d8ccc571eebaea0244ea6e376854b3919f42189 (diff) | |
| parent | db720882b2e193edb002019e16397088175d21a2 (diff) | |
| download | rust-9a7255ee2b1d06546476a4e5f727f1d1e0c54ff0.tar.gz rust-9a7255ee2b1d06546476a4e5f727f1d1e0c54ff0.zip | |
Merge pull request #4375 from rust-lang/rustup-2025-06-04
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_parse/src/parser/stmt.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 1a44f4af8a6..adfea3641e6 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -834,7 +834,7 @@ impl<'a> Parser<'a> { // guides recovery in case we write `&raw expr`. if borrow_kind == ast::BorrowKind::Ref && mutbl == ast::Mutability::Not - && matches!(&expr.kind, ExprKind::Path(None, p) if p.is_ident(kw::Raw)) + && matches!(&expr.kind, ExprKind::Path(None, p) if *p == kw::Raw) { self.expected_token_types.insert(TokenType::KwMut); self.expected_token_types.insert(TokenType::KwConst); diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs index ccc3410674b..c37cb0881c3 100644 --- a/compiler/rustc_parse/src/parser/stmt.rs +++ b/compiler/rustc_parse/src/parser/stmt.rs @@ -713,7 +713,7 @@ impl<'a> Parser<'a> { /// Parses the rest of a block expression or function body. /// Precondition: already parsed the '{'. - pub(crate) fn parse_block_tail( + pub fn parse_block_tail( &mut self, lo: Span, s: BlockCheckMode, |
