diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-05-30 08:00:10 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-05-30 08:00:10 -0400 |
| commit | 42e757192d9a4855e15f3244864fe305cd88359b (patch) | |
| tree | db3368d7c8165a4ce590e61ef44b58d96a547e1d /library/alloc/src/alloc.rs | |
| parent | 4f9b394c8a24803e57ba892fa00e539742ebafc0 (diff) | |
| download | rust-42e757192d9a4855e15f3244864fe305cd88359b.tar.gz rust-42e757192d9a4855e15f3244864fe305cd88359b.zip | |
Bump to latest beta compiler
Diffstat (limited to 'library/alloc/src/alloc.rs')
| -rw-r--r-- | library/alloc/src/alloc.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs index 01d1fdc9b2a..8c4f6a73d7f 100644 --- a/library/alloc/src/alloc.rs +++ b/library/alloc/src/alloc.rs @@ -38,7 +38,6 @@ extern "Rust" { #[rustc_nounwind] fn __rust_alloc_zeroed(size: usize, align: usize) -> *mut u8; - #[cfg(not(bootstrap))] static __rust_no_alloc_shim_is_unstable: u8; } @@ -96,7 +95,6 @@ pub unsafe fn alloc(layout: Layout) -> *mut u8 { unsafe { // Make sure we don't accidentally allow omitting the allocator shim in // stable code until it is actually stabilized. - #[cfg(not(bootstrap))] core::ptr::read_volatile(&__rust_no_alloc_shim_is_unstable); __rust_alloc(layout.size(), layout.align()) |
