From 50ea70d7d066171a7fbf7f3905a33f84135456ea Mon Sep 17 00:00:00 2001 From: Paolo Teti Date: Sat, 1 Sep 2018 20:12:41 +0200 Subject: [PATCH] Rename panic_implementation -> panic_handler panic_implementation has been deprecated/renamed. New name is panic_handler --- Cargo.toml | 2 +- crates/{panic-implementation => panic-handler}/Cargo.toml | 2 +- crates/{panic-implementation => panic-handler}/src/lib.rs | 4 ++-- examples/intrinsics.rs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename crates/{panic-implementation => panic-handler}/Cargo.toml (76%) rename crates/{panic-implementation => panic-handler}/src/lib.rs (68%) diff --git a/Cargo.toml b/Cargo.toml index 3112662..7eae2dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ test = false cc = { optional = true, version = "1.0" } [dev-dependencies] -panic-implementation = { path = 'crates/panic-implementation' } +panic-handler = { path = 'crates/panic-handler' } [features] default = ["compiler-builtins"] diff --git a/crates/panic-implementation/Cargo.toml b/crates/panic-handler/Cargo.toml similarity index 76% rename from crates/panic-implementation/Cargo.toml rename to crates/panic-handler/Cargo.toml index a076cbc..1dea613 100644 --- a/crates/panic-implementation/Cargo.toml +++ b/crates/panic-handler/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "panic-implementation" +name = "panic-handler" version = "0.1.0" authors = ["Alex Crichton "] diff --git a/crates/panic-implementation/src/lib.rs b/crates/panic-handler/src/lib.rs similarity index 68% rename from crates/panic-implementation/src/lib.rs rename to crates/panic-handler/src/lib.rs index 1bb2397..e970610 100644 --- a/crates/panic-implementation/src/lib.rs +++ b/crates/panic-handler/src/lib.rs @@ -1,11 +1,11 @@ // Hack of a crate until rust-lang/rust#51647 is fixed -#![feature(no_core, panic_implementation)] +#![feature(no_core, panic_handler)] #![no_core] extern crate core; -#[panic_implementation] +#[panic_handler] fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } diff --git a/examples/intrinsics.rs b/examples/intrinsics.rs index 7f502bb..a5be573 100644 --- a/examples/intrinsics.rs +++ b/examples/intrinsics.rs @@ -11,11 +11,11 @@ #![feature(lang_items)] #![feature(start)] #![feature(allocator_api)] -#![feature(panic_implementation)] +#![feature(panic_handler)] #![cfg_attr(windows, feature(panic_unwind))] #![no_std] -extern crate panic_implementation; +extern crate panic_handler; #[cfg(not(thumb))] #[link(name = "c")]