diff options
| author | bors <bors@rust-lang.org> | 2024-03-19 17:52:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-19 17:52:46 +0000 |
| commit | e760daa6a729b3d52a38804e9766f7d89dc27357 (patch) | |
| tree | 533b50b2a4fa9677ae4877146dfc048bc622833e /compiler/rustc_parse/src/parser | |
| parent | a385e5667c11098a01368c06e7c0c9236cd477cc (diff) | |
| parent | 433449a900b9286db70aa8c57cd723a84cb558f0 (diff) | |
| download | rust-e760daa6a729b3d52a38804e9766f7d89dc27357.tar.gz rust-e760daa6a729b3d52a38804e9766f7d89dc27357.zip | |
Auto merge of #122735 - matthiaskrgr:rollup-pgb1s90, r=matthiaskrgr
Rollup of 10 pull requests Successful merges: - #122435 (Don't trigger `unused_qualifications` on global paths) - #122556 (Extend format arg help for simple tuple index access expression) - #122634 (compiletest: Add support for `//@ aux-bin: foo.rs`) - #122677 (Fix incorrect mutable suggestion information for binding in ref pattern.) - #122691 (Fix ICE: `global_asm!()` Don't Panic When Unable to Evaluate Constant) - #122695 (Change only_local to a enum type.) - #122717 (Ensure stack before parsing dot-or-call) - #122719 (Ensure nested statics have a HIR node to prevent various queries from ICEing) - #122720 ([doc]:fix error code example) - #122724 (add test for casting pointer to union with unsized tail) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index e27a5f93799..136145dd182 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -943,7 +943,10 @@ impl<'a> Parser<'a> { // Stitch the list of outer attributes onto the return value. // A little bit ugly, but the best way given the current code // structure - let res = self.parse_expr_dot_or_call_with_(e0, lo); + let res = ensure_sufficient_stack( + // this expr demonstrates the recursion it guards against + || self.parse_expr_dot_or_call_with_(e0, lo), + ); if attrs.is_empty() { res } else { |
