Skip to content

Add panic=immediate-abort support to Cargo#16041

Merged
weihanglo merged 1 commit into
rust-lang:masterfrom
saethlin:panic=immediate-abort
Oct 4, 2025
Merged

Add panic=immediate-abort support to Cargo#16041
weihanglo merged 1 commit into
rust-lang:masterfrom
saethlin:panic=immediate-abort

Conversation

@saethlin
Copy link
Copy Markdown
Member

@saethlin saethlin commented Oct 3, 2025

I recently turned -Zbuild-std-features=panic_immediate_abort into -Cpanic=immediate-abort in rust-lang/rust#146317. There was some discussion of the feature on Zulip here: #t-compiler/major changes > Unstably add -Cpanic=immediate-abort compiler-team#909

One of the outcomes of this shipping in nightly is that a few use patterns were broken, see rust-lang/rust#146974 and rust-lang/rust#146317 for examples. I think most of the users commenting on these issues are having trouble with how RUSTFLAGS is propagated through Cargo, and most likely they would have just gotten what they wanted if they could have set a profile option instead. So I'm trying to implement that.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-build-execution Area: anything dealing with executing the compiler A-documenting-cargo-itself Area: Cargo's documentation A-manifest Area: Cargo.toml issues A-profiles Area: profiles A-unstable Area: nightly unstable support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants