Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
75d8687
add span to struct pattern rest (..)
Erk- Aug 23, 2025
fc7de99
Ensure we emit an allocator shim when only some crate types need one
bjorn3 Aug 28, 2025
1d30900
Fix typo in comment
bjorn3 Aug 28, 2025
f4888c2
Correctly handle different crate types disagreeing if the allocator s…
bjorn3 Aug 28, 2025
8930d3a
resolve: Avoid a regression from splitting prelude into two scopes
petrochenkov Aug 28, 2025
0711bba
Ignore test when dylibs are not supported
bjorn3 Aug 31, 2025
2784327
alloc: make Cow From impls const
npmccallum Sep 1, 2025
ac89fcb
rustdoc-search: skip loading unneeded fnData
notriddle Sep 1, 2025
f6e7c81
Add compiler error when trying to use concat metavar expr in repetitions
jullanggit Aug 31, 2025
8dfd6b8
fix a constness ordering bug in rustfmt
npmccallum Sep 1, 2025
d8df631
Make `Parser::parse_for_head` public for rustfmt usage
mohe2015 Sep 1, 2025
6fc0cf4
Remove dead code stemming from an old effects desugaring
fmease Sep 1, 2025
ed295ff
Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors
jhpratt Sep 2, 2025
5168be1
Rollup merge of #145961 - petrochenkov:extprelregr, r=nnethercote
jhpratt Sep 2, 2025
c3301a9
Rollup merge of #145962 - bjorn3:linkage_fixes, r=WaffleLapkin
jhpratt Sep 2, 2025
c9e5f3d
Rollup merge of #146064 - jullanggit:patch-1, r=fmease
jhpratt Sep 2, 2025
a972fbc
Rollup merge of #146067 - npmccallum:cow, r=oli-obk
jhpratt Sep 2, 2025
efdb9bb
Rollup merge of #146070 - notriddle:skip-loading-function-data, r=Gui…
jhpratt Sep 2, 2025
50e38b5
Rollup merge of #146089 - npmccallum:rustfmt, r=fmease
jhpratt Sep 2, 2025
f4c5c34
Rollup merge of #146094 - mohe2015:patch-2, r=lcnr
jhpratt Sep 2, 2025
ef60f50
Rollup merge of #146102 - fmease:rm-dead-eff-code-iii, r=fee1-dead
jhpratt Sep 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion compiler/rustc_parse/src/parser/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2910,7 +2910,8 @@ impl<'a> Parser<'a> {
}
}

fn parse_for_head(&mut self) -> PResult<'a, (Box<Pat>, Box<Expr>)> {
// Public to use it for custom `for` expressions in rustfmt forks like https://github.com/tucant/rustfmt
pub fn parse_for_head(&mut self) -> PResult<'a, (Box<Pat>, Box<Expr>)> {
let begin_paren = if self.token == token::OpenParen {
// Record whether we are about to parse `for (`.
// This is used below for recovery in case of `for ( $stuff ) $block`
Expand Down