Skip to content

Conversation

@RalfJung
Copy link
Member

Fixes #4698

@rustbot
Copy link
Collaborator

rustbot commented Nov 17, 2025

Thank you for contributing to Miri! A reviewer will take a look at your PR, typically within a week or two.
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Nov 17, 2025
@RalfJung RalfJung changed the title emit stash diagnostics before flushing delayed errors emit stashed diagnostics before flushing delayed errors Nov 17, 2025
@RalfJung RalfJung enabled auto-merge November 17, 2025 10:35
@RalfJung RalfJung added this pull request to the merge queue Nov 17, 2025
@RalfJung RalfJung removed this pull request from the merge queue due to a manual request Nov 17, 2025
@RalfJung RalfJung enabled auto-merge November 17, 2025 11:16
@RalfJung RalfJung added this pull request to the merge queue Nov 17, 2025
Merged via the queue into rust-lang:master with commit 0fea24a Nov 17, 2025
13 checks passed
@RalfJung RalfJung deleted the stashed-diag branch November 17, 2025 12:24
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Nov 17, 2025
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 18, 2025
flush_delayed: add note about stashed diagnostics

r? `@nnethercote`
Is `emit_stashed_diagnostics` the right advice to give? The other option seems to be to call `finish_diagnostics`. That's what I ended up doing (for now) in rust-lang/miri#4702 because it best matches what happens during normal compilation.
rust-timer added a commit to rust-lang/rust that referenced this pull request Nov 18, 2025
Rollup merge of #149020 - RalfJung:flush_delayed, r=nnethercote

flush_delayed: add note about stashed diagnostics

r? `@nnethercote`
Is `emit_stashed_diagnostics` the right advice to give? The other option seems to be to call `finish_diagnostics`. That's what I ended up doing (for now) in rust-lang/miri#4702 because it best matches what happens during normal compilation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failed: self.stashed_diagnostics.is_empty()

2 participants