diff options
| author | bors <bors@rust-lang.org> | 2024-04-30 04:52:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-30 04:52:01 +0000 |
| commit | f973a15a109cbfced3107d91f0224ff2c8381e74 (patch) | |
| tree | 0fabdc30762f763d2e06a42d8c9f5845313ac061 /compiler/rustc_parse/src | |
| parent | f9dca46218d4b8efa062aec4fd0820cbb4942aa2 (diff) | |
| parent | d81e444c8e6d7466347bfcd4ee098ca079506944 (diff) | |
| download | rust-f973a15a109cbfced3107d91f0224ff2c8381e74.tar.gz rust-f973a15a109cbfced3107d91f0224ff2c8381e74.zip | |
Auto merge of #124547 - matthiaskrgr:rollup-9tv8upg, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #124519 (adapt a codegen test for llvm 19) - #124524 (Add StaticForeignItem and use it on ForeignItemKind) - #124540 (Give proof tree visitors the ability to instantiate nested goals directly) - #124543 (codegen tests: Tolerate `range()` qualifications in enum tests) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index ed51710564a..848277c4611 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -1191,7 +1191,11 @@ impl<'a> Parser<'a> { ident_span: ident.span, const_span, }); - ForeignItemKind::Static(ty, Mutability::Not, expr) + ForeignItemKind::Static(Box::new(StaticForeignItem { + ty, + mutability: Mutability::Not, + expr, + })) } _ => return self.error_bad_item_kind(span, &kind, "`extern` blocks"), }, |
