diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-11-12 06:27:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-12 06:27:17 +0100 |
| commit | b7dc4813a8ea9debafd7bc86bda3baafe6646f93 (patch) | |
| tree | bd2d761c689d84e3b2f938d44891676e9a4ae0d5 /compiler/rustc_codegen_gcc | |
| parent | 2ad4a3568d9932bc4ecba48142a1f400c6c260aa (diff) | |
| parent | 1d6e8476746d79d21bde97243c30937738750227 (diff) | |
| download | rust-b7dc4813a8ea9debafd7bc86bda3baafe6646f93.tar.gz rust-b7dc4813a8ea9debafd7bc86bda3baafe6646f93.zip | |
Rollup merge of #132653 - BoxyUwU:const_arg_stmt_mac_call, r=compiler-errors
Don't use `maybe_unwrap_block` when checking for macro calls in a block expr
Fixes #131915
Using `maybe_unwrap_block` to determine if we are looking at a `{ mac_call!{} }` will fail sometimes as `mac_call!{}` could be a `StmtKind::MacCall` not a `StmtKind::Expr`. This caused the def collector to think that `{ mac_call!{} }` was a non-trivial const argument and create a definition for it even though it should not.
r? `@compiler-errors` cc `@camelid`
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
