Skip to content

-Zpanic-in-drop=abort for rustc + tools #89269

Open
@Mark-Simulacrum

Description

@Mark-Simulacrum

This flag was added in #88759 and showed good performance and code size benefits for rustc. It would be nice to see if we can land those benefits, both to get some experience with aborting instead of unwinding panics in destructors (e.g., what goes wrong? any painful patterns?) and to carry forward those performance and size wins.

This flag is currently restricted to being the same across the whole crate graph though, which means we'd not be able to do this for rustc only since it would also affect std's destructors (which would be a user-visible change we don't want). Opening this issue to see if there's a way we can work around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-optimizationCategory: An issue highlighting optimization opportunities or PRs implementing suchI-compiletimeIssue: Problems and improvements with respect to compile times.WG-compiler-performanceWorking group: Compiler Performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions