about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-20 14:07:04 +0200
committerGitHub <noreply@github.com>2024-06-20 14:07:04 +0200
commitf511f2b18d0c5c3d974786781c3b01429a73f356 (patch)
treeb549c9a7e2b76bde99efebe897bffe10707399b3 /compiler/rustc_pattern_analysis/src/errors.rs
parentef2e8bfcbfb10d54b8b8a0cdbe509783c7db5023 (diff)
parent19b7192c7266ddd6d3b6fb3b436458fb84682f9c (diff)
downloadrust-f511f2b18d0c5c3d974786781c3b01429a73f356.tar.gz
rust-f511f2b18d0c5c3d974786781c3b01429a73f356.zip
Rollup merge of #126719 - nnethercote:fix-126521, r=oli-obk
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``
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions