Skip to content

wrong exit code after ICE #116659

Closed
Closed
@matthiaskrgr

Description

@matthiaskrgr

found while checking #116658 with

rustc 1.75.0-nightly (c1691db36 2023-10-11)
binary: rustc
commit-hash: c1691db366c0f2e2341c60377c248ca2d9335076
commit-date: 2023-10-11
host: x86_64-unknown-linux-gnu
release: 1.75.0-nightly
LLVM version: 17.0.2

When you run the snipped above with --edition, rustc panics, but the exit status is 1 as if there was just a normal compiler error, instead of a 101.

This tripped up automatic ice-reduction that relies on a somewhat familiar exit code when the program crashes 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-panicArea: Panicking machineryC-bugCategory: This is a bug.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions