diff options
| author | Paolo Teti <paolo.teti@gmail.com> | 2018-09-01 20:12:41 +0200 |
|---|---|---|
| committer | Paolo Teti <paolo.teti@gmail.com> | 2018-09-01 21:17:07 +0200 |
| commit | 8a4148f60b5b27e35df5c5ed9dd42cb537b86a55 (patch) | |
| tree | f857d3ac2de8cb4666264c19e1fc6c69ec8a53d3 /library/compiler-builtins/crates/panic-handler/src/lib.rs | |
| parent | 7bb11cdb98b9cea76b49ca0730fffbc7dd9de1a0 (diff) | |
| download | rust-8a4148f60b5b27e35df5c5ed9dd42cb537b86a55.tar.gz rust-8a4148f60b5b27e35df5c5ed9dd42cb537b86a55.zip | |
Rename panic_implementation -> panic_handler
panic_implementation has been deprecated/renamed. New name is panic_handler
Diffstat (limited to 'library/compiler-builtins/crates/panic-handler/src/lib.rs')
| -rw-r--r-- | library/compiler-builtins/crates/panic-handler/src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/compiler-builtins/crates/panic-handler/src/lib.rs b/library/compiler-builtins/crates/panic-handler/src/lib.rs new file mode 100644 index 00000000000..e9706108737 --- /dev/null +++ b/library/compiler-builtins/crates/panic-handler/src/lib.rs @@ -0,0 +1,11 @@ +// Hack of a crate until rust-lang/rust#51647 is fixed + +#![feature(no_core, panic_handler)] +#![no_core] + +extern crate core; + +#[panic_handler] +fn panic(_: &core::panic::PanicInfo) -> ! { + loop {} +} |
