cargo reports a warning: panic
setting is ignored for bench
profile. When the value it is not ignored.
#13894
Labels
A-profiles
Area: profiles
C-bug
Category: bug
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Z-build-std
Nightly: build-std
Problem
cargo bench fails to compile when using build-std, however including 'panic = "unwind"' in Cargo.toml '[profile.bench]' fixes the issue. This causes cargo to warn about the setting being ignored, when it's clearly doing something.
Steps
versions:
~/.cargo/config.toml
/project/Cargo.toml
bench.rs
cargo bench without 'panic = "unwind"' in Cargo.toml '[profile.bench]'
cargo bench with 'panic = "unwind"' in Cargo.toml '[profile.bench]'
Possible Solution(s)
suppress / remove the warning,
panic
setting is ignored forbench
profileNotes
No response
Version
No response
The text was updated successfully, but these errors were encountered: