about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-06-20 10:08:06 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-06-20 10:17:40 +1000
commit19b7192c7266ddd6d3b6fb3b436458fb84682f9c (patch)
treed42ea38c4a700f0e5674fbab114f72e435198478 /compiler/rustc_pattern_analysis/src/errors.rs
parent894f7a4ba6554d3797404bbf550d9919df060b97 (diff)
downloadrust-19b7192c7266ddd6d3b6fb3b436458fb84682f9c.tar.gz
rust-19b7192c7266ddd6d3b6fb3b436458fb84682f9c.zip
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.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions