From 005ec047a080d932e75aaffd32ed37493c400a6f Mon Sep 17 00:00:00 2001 From: Gabriel Majeri Date: Tue, 7 Sep 2021 14:17:54 +0300 Subject: [PATCH] Handle panics by unwinding the stack --- .github/workflows/rust.yml | 4 ---- Cargo.toml | 6 ------ 2 files changed, 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 09c798a0..6da109c4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -79,10 +79,6 @@ jobs: - name: Run cargo test uses: actions-rs/cargo@v1 - env: - # This works around "duplicate item in crate core" errors: - # https://github.com/rust-lang/wg-cargo-std-aware/issues/56 - CARGO_PROFILE_DEV_PANIC: unwind with: command: test args: -Zbuild-std=std --target x86_64-unknown-linux-gnu --features=exts diff --git a/Cargo.toml b/Cargo.toml index 71d26acc..39686528 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,12 +45,6 @@ members = [ "uefi-test-runner", ] -[profile.dev] -panic = "abort" - -[profile.release] -panic = "abort" - [patch.crates-io] uefi-macros = { path = "uefi-macros" } uefi = { path = "." }