rust/compiler/rustc_driver_impl/src
Nicholas Nethercote e55df623ea Remove an unchecked_claim_error_was_emitted call.
When `catch_fatal_errors` catches a `FatalErrorMarker`, it returns an
`ErrorGuaranteed` that is conjured out of thin air with
`unchecked_claim_error_was_emitted`. But that `ErrorGuaranteed` is never
used.

This commit changes it to instead conjure a `FatalError` out of thin
air. (A non-deprecated action!) This makes more sense because
`FatalError` and `FatalErrorMarker` are a natural pairing -- a
`FatalErrorMarker` is created by calling `FatalError::raise`, so this is
effectively getting back the original `FatalError`.

This requires a tiny change in `catch_with_exit_code`. The old result of
the `catch_fatal_errors` call there was
`Result<Result<(), ErrorGuaranteed>, ErrorGuaranteed>` which could be
`flatten`ed into `Result<(), ErrorGuaranteed>`. The new result of the
`catch_fatal_errors` calls is
`Result<Result<(), ErrorGuaranteed>, FatalError>`, which can't be
`flatten`ed but is still easily matched for the success case.
2024-02-07 18:57:38 +11:00
..
args.rs Add support for shell argfiles 2024-01-08 15:25:55 -05:00
lib.rs Remove an unchecked_claim_error_was_emitted call. 2024-02-07 18:57:38 +11:00
pretty.rs rename to verbose-internals 2023-12-19 13:35:37 -05:00
print.rs Fix ICE on --print=... i/o errors 2023-04-25 08:17:18 -07:00
session_diagnostics.rs Stop telling people to submit bugs for internal feature ICEs 2023-10-25 23:23:04 +02:00
signal_handler.rs Clarify arbitrary constants 2023-07-19 00:22:04 -07:00