diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-05-08 11:32:22 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-06-24 19:44:35 +0000 |
| commit | 5f63b5758969872add239e477b9a49cea08cc921 (patch) | |
| tree | 109231ebf192dfc3503f8a5572564b5cfa57bc6d /tests/ui/panic-runtime/auxiliary | |
| parent | 0cdd7f50b06fb363a2e8b0f6d270e0ed14476af8 (diff) | |
| download | rust-5f63b5758969872add239e477b9a49cea08cc921.tar.gz rust-5f63b5758969872add239e477b9a49cea08cc921.zip | |
Remove dependency injection for the panic runtime
This used to be necessary for a correct linker order, but ever since the introduction of symbols.o adding the symbols in question to symbols.o would work just as well. We do still add dependencies on the panic runtime to the local crate, but not for #![needs_panic_runtime] crates. This also removes the runtime-depends-on-needs-runtime test. inject_dependency_if used to emit this error, but with symbols.o it is no longer important that there is no dependency and in fact it may be nice to have panic_abort and panic_unwind directly depend on libstd in the future for calling std::process::abort().
Diffstat (limited to 'tests/ui/panic-runtime/auxiliary')
| -rw-r--r-- | tests/ui/panic-runtime/auxiliary/depends.rs | 8 | ||||
| -rw-r--r-- | tests/ui/panic-runtime/auxiliary/needs-panic-runtime.rs | 6 |
2 files changed, 0 insertions, 14 deletions
diff --git a/tests/ui/panic-runtime/auxiliary/depends.rs b/tests/ui/panic-runtime/auxiliary/depends.rs deleted file mode 100644 index 7a35619b681..00000000000 --- a/tests/ui/panic-runtime/auxiliary/depends.rs +++ /dev/null @@ -1,8 +0,0 @@ -//@ no-prefer-dynamic - -#![feature(panic_runtime)] -#![crate_type = "rlib"] -#![panic_runtime] -#![no_std] - -extern crate needs_panic_runtime; diff --git a/tests/ui/panic-runtime/auxiliary/needs-panic-runtime.rs b/tests/ui/panic-runtime/auxiliary/needs-panic-runtime.rs deleted file mode 100644 index fbafee0c241..00000000000 --- a/tests/ui/panic-runtime/auxiliary/needs-panic-runtime.rs +++ /dev/null @@ -1,6 +0,0 @@ -//@ no-prefer-dynamic - -#![feature(needs_panic_runtime)] -#![crate_type = "rlib"] -#![needs_panic_runtime] -#![no_std] |
