diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-09-02 16:28:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-02 16:28:58 -0500 |
| commit | dcc0626f98386287efd081ea8f3dde44f07e8c11 (patch) | |
| tree | f857d3ac2de8cb4666264c19e1fc6c69ec8a53d3 /library/compiler-builtins/crates/panic-handler/src/lib.rs | |
| parent | 7bb11cdb98b9cea76b49ca0730fffbc7dd9de1a0 (diff) | |
| parent | 8a4148f60b5b27e35df5c5ed9dd42cb537b86a55 (diff) | |
| download | rust-dcc0626f98386287efd081ea8f3dde44f07e8c11.tar.gz rust-dcc0626f98386287efd081ea8f3dde44f07e8c11.zip | |
Merge pull request #258 from paoloteti/fix-ci
Rename `panic_implementation` -> `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 {} +} |
