Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion builtins-test-intrinsics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish = false
license = "MIT OR Apache-2.0"

[dependencies]
compiler_builtins = { path = "../compiler-builtins", features = ["compiler-builtins"]}
compiler_builtins = { path = "../compiler-builtins", features = ["compiler-builtins"] }
panic-handler = { path = "../crates/panic-handler" }

[features]
Expand Down
3 changes: 0 additions & 3 deletions compiler-builtins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ core = { version = "1.0.1", optional = true, package = "rustc-std-workspace-core
[build-dependencies]
cc = { optional = true, version = "1.2" }

[dev-dependencies]
panic-handler = { path = "../crates/panic-handler" }

[features]
default = ["compiler-builtins"]

Expand Down
7 changes: 2 additions & 5 deletions crates/panic-handler/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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 {}
}
Loading