Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix diagnostics being cleared right after being received #19333

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

alexkirsz
Copy link
Contributor

cc @Veykril this predicate self.diagnostics_received != DiagnosticsReceived::YesAndClearedForAll will always evaluate to true as you're setting self.diagnostics_received to DiagnosticsReceived::Yes just before.

This breaks most Clippy diagnostics from displaying in our codebase.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 10, 2025
@alexkirsz alexkirsz force-pushed the alexkirsz/fix-diagnostics branch from 4424f1d to d5cab51 Compare March 10, 2025 10:56
@alexkirsz alexkirsz force-pushed the alexkirsz/fix-diagnostics branch from d5cab51 to 6845fb8 Compare March 10, 2025 10:57
@alexkirsz alexkirsz changed the title Fix diagnostics being cleared right after being received fix: Fix diagnostics being cleared right after being received Mar 10, 2025
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Veykril Veykril enabled auto-merge March 10, 2025 11:01
@Veykril Veykril added this pull request to the merge queue Mar 10, 2025
Merged via the queue into rust-lang:master with commit d76b785 Mar 10, 2025
9 checks passed
@alexkirsz alexkirsz deleted the alexkirsz/fix-diagnostics branch March 10, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants