diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-04-25 11:32:28 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-04-25 11:32:28 +0000 |
| commit | 1c978ee51610dcc282c35930231ea737042e56c5 (patch) | |
| tree | ac1f35f1836ca7e450fc3f66ee065a9d29122689 /example/alloc_example.rs | |
| parent | 805c4a27f51f331a7322b377d5ad42aee19c8455 (diff) | |
| parent | 106db3ef59a20abd4403587895140114236ea4f5 (diff) | |
| download | rust-1c978ee51610dcc282c35930231ea737042e56c5.tar.gz rust-1c978ee51610dcc282c35930231ea737042e56c5.zip | |
Sync from rust f5559e338256f17ada6d82b429acc2dbd8facc9c
Diffstat (limited to 'example/alloc_example.rs')
| -rw-r--r-- | example/alloc_example.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/example/alloc_example.rs b/example/alloc_example.rs index d994e2fbc0a..31a294ad7a8 100644 --- a/example/alloc_example.rs +++ b/example/alloc_example.rs @@ -1,4 +1,4 @@ -#![feature(start, core_intrinsics, alloc_error_handler)] +#![feature(start, core_intrinsics)] #![no_std] extern crate alloc; @@ -22,11 +22,6 @@ fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! { core::intrinsics::abort(); } -#[alloc_error_handler] -fn alloc_error_handler(_: alloc::alloc::Layout) -> ! { - core::intrinsics::abort(); -} - #[start] fn main(_argc: isize, _argv: *const *const u8) -> isize { let world: Box<&str> = Box::new("Hello World!\0"); |
