Files
rust/compiler
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
..
2023-10-30 08:46:02 +11:00
2024-01-16 21:15:31 +01:00
2023-11-15 19:41:28 -05:00
2023-11-15 19:41:28 -05:00
2023-11-23 14:11:02 +03:00
2024-02-06 12:44:40 +03:00
2024-02-05 14:20:15 +03:00
2024-01-25 14:01:33 +00:00
2024-01-25 14:01:33 +00:00
2024-01-25 14:01:33 +00:00
2024-01-25 14:01:33 +00:00
2024-02-06 02:22:58 +00:00