Skip to content

Commit 90014da

Browse files
committed
Rust 1.72 compat
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 6387d9d commit 90014da

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

rust/alloc/alloc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 {
335335
}
336336
}
337337

338+
#[cfg(not(version("1.72")))]
338339
// # Allocation error handler
339340

340341
#[cfg(not(no_global_oom_handling))]

rust/alloc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
#![feature(ascii_char)]
111111
#![feature(assert_matches)]
112112
#![feature(async_iterator)]
113+
#![feature(cfg_version)]
113114
#![feature(coerce_unsized)]
114115
#![feature(const_align_of_val)]
115116
#![feature(const_box)]

0 commit comments

Comments
 (0)