mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
19b7192c72
In #120699 I moved some code dealing with `has_future_breakage` earlier in `emit_diagnostic`. Issue #126521 identified a case where that reordering was invalid (leading to an assertion failure) for some `Expect` diagnostics. This commit partially undoes the change, by moving the handling of unstable `Expect` diagnostics earlier again. This makes `emit_diagnostic` a bit uglier, but is necessary to fix the problem. Fixes #126521. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |