Skip to content

Commit 6e7fe45

Browse files
jannauhoshinolina
authored andcommitted
rust: alloc: Add global_alloc_ty lang_item
Minimal sync to rust-1.78, still builds with rust-1.76. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 597035b commit 6e7fe45

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rust/alloc/alloc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ extern "Rust" {
5252
#[unstable(feature = "allocator_api", issue = "32838")]
5353
#[derive(Copy, Clone, Default, Debug)]
5454
#[cfg(not(test))]
55+
#[cfg_attr(version("1.78"), lang = "global_alloc_ty")]
5556
pub struct Global;
5657

5758
#[cfg(test)]

0 commit comments

Comments
 (0)