diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-06-04 21:17:51 +0000 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2025-06-04 21:27:00 +0000 |
| commit | ab453db3c4e7a49d0ed3811c12ae658cf578f78b (patch) | |
| tree | 3c9f8e8a9611e421563ae38e548ea9a1f3c39293 /library/compiler-builtins/crates/panic-handler/src | |
| parent | 1599091459580e2e20b7b874da111b6cbdb6ae36 (diff) | |
| download | rust-ab453db3c4e7a49d0ed3811c12ae658cf578f78b.tar.gz rust-ab453db3c4e7a49d0ed3811c12ae658cf578f78b.zip | |
`panic-handler`: Remove the `no_core` feature
This was introduced before `#[panic_handler]` was stable, but should no longer be needed. Additionally, we only need it for `builtins-test-intrinsics`, not as a dependency of `compiler-builtins`.
Diffstat (limited to 'library/compiler-builtins/crates/panic-handler/src')
| -rw-r--r-- | library/compiler-builtins/crates/panic-handler/src/lib.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/library/compiler-builtins/crates/panic-handler/src/lib.rs b/library/compiler-builtins/crates/panic-handler/src/lib.rs index 673e005224b..f4d7c839740 100644 --- a/library/compiler-builtins/crates/panic-handler/src/lib.rs +++ b/library/compiler-builtins/crates/panic-handler/src/lib.rs @@ -1,11 +1,8 @@ //! This is needed for tests on targets that require a `#[panic_handler]` function -#![feature(no_core)] -#![no_core] - -extern crate core; +#![no_std] #[panic_handler] -fn panic(_: &core::panic::PanicInfo) -> ! { +fn panic(_: &core::panic::PanicInfo<'_>) -> ! { loop {} } |
