diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-03-31 13:47:10 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-03-31 13:47:10 +0200 |
| commit | ab425a4bca1d6df234596a1621c4cabcc73bb272 (patch) | |
| tree | c4aa566aa7ae1272b264654362fabca80d2c5ee8 /example/alloc_example.rs | |
| parent | 2ceb5277284e7a485504d1f7d165a385cbfd797b (diff) | |
| download | rust-ab425a4bca1d6df234596a1621c4cabcc73bb272.tar.gz rust-ab425a4bca1d6df234596a1621c4cabcc73bb272.zip | |
Revert "Build with `-Cpanic=unwind` by default"
This reverts commit afe74d71e4c2f08696ade0de321a45f7442440d8. It shouldn't have been pushed to master as it isn't ready yet.
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 b58d90cb5ae..71e93e87b6c 100644 --- a/example/alloc_example.rs +++ b/example/alloc_example.rs @@ -1,4 +1,4 @@ -#![feature(start, box_syntax, core_intrinsics, alloc_prelude, alloc_error_handler, lang_items)] +#![feature(start, box_syntax, core_intrinsics, alloc_prelude, alloc_error_handler)] #![no_std] extern crate alloc; @@ -27,11 +27,6 @@ fn alloc_error_handler(_: alloc::alloc::Layout) -> ! { core::intrinsics::abort(); } -#[lang = "eh_personality"] -fn eh_personality() -> ! { - loop {} -} - #[start] fn main(_argc: isize, _argv: *const *const u8) -> isize { let world: Box<&str> = box "Hello World!\0"; |
