mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-04 05:57:36 +00:00
![]() Fix assertion failure for some `Expect` diagnostics. 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. r? ``@oli-obk`` |
||
---|---|---|
.. | ||
json | ||
markdown | ||
annotate_snippet_emitter_writer.rs | ||
codes.rs | ||
diagnostic_impls.rs | ||
diagnostic.rs | ||
emitter.rs | ||
error.rs | ||
json.rs | ||
lib.rs | ||
lock.rs | ||
registry.rs | ||
snippet.rs | ||
styled_buffer.rs | ||
tests.rs | ||
translation.rs |