Bladeren bron

Merge pull request #258 from paoloteti/fix-ci

Rename `panic_implementation` -> `panic_handler`
Alex Crichton 6 jaren geleden
bovenliggende
commit
5a88717b46
4 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 1 1
      Cargo.toml
  2. 1 1
      crates/panic-handler/Cargo.toml
  3. 2 2
      crates/panic-handler/src/lib.rs
  4. 2 2
      examples/intrinsics.rs

+ 1 - 1
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"]

+ 1 - 1
crates/panic-implementation/Cargo.toml → crates/panic-handler/Cargo.toml

@@ -1,5 +1,5 @@
 [package]
-name = "panic-implementation"
+name = "panic-handler"
 version = "0.1.0"
 authors = ["Alex Crichton <alex@alexcrichton.com>"]
 

+ 2 - 2
crates/panic-implementation/src/lib.rs → 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 {}
 }

+ 2 - 2
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")]