Skip to content

fix: Stale diagnostics when a custom check command is configured#21738

Open
Wilfred wants to merge 1 commit intorust-lang:masterfrom
Wilfred:custom_check_command_stale_diagnostics
Open

fix: Stale diagnostics when a custom check command is configured#21738
Wilfred wants to merge 1 commit intorust-lang:masterfrom
Wilfred:custom_check_command_stale_diagnostics

Conversation

@Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Mar 3, 2026

We can't use the flycheck scope, because that value varies depending on how the flycheck was triggered. See also #21571, which was reverted due to issues with scope.

Instead, treat empty diagnostics as a flycheck for the entire workspace, add comments explaining the JSON diagnostic format, and add an integration test.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 3, 2026
@rustbot

This comment has been minimized.

@Wilfred Wilfred force-pushed the custom_check_command_stale_diagnostics branch from 350b5c3 to 6acb298 Compare March 3, 2026 14:19
@rustbot

This comment has been minimized.

@Wilfred Wilfred force-pushed the custom_check_command_stale_diagnostics branch from 6acb298 to 601f76c Compare March 3, 2026 14:21
@rustbot

This comment has been minimized.

@Wilfred Wilfred force-pushed the custom_check_command_stale_diagnostics branch from 601f76c to 9b636b4 Compare March 3, 2026 14:28
@rustbot

This comment has been minimized.

We can't use the flycheck scope, because that value varies depending
on how the flycheck was triggered. See also
rust-lang#21571, which was reverted due to issues with
scope.

Instead, treat empty diagnostics as a flycheck for the entire
workspace, add comments explaining the JSON diagnostic format, and add
an integration test.
@Wilfred Wilfred force-pushed the custom_check_command_stale_diagnostics branch from 9b636b4 to c6c2135 Compare March 6, 2026 15:59
@rustbot
Copy link
Collaborator

rustbot commented Mar 6, 2026

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@Wilfred
Copy link
Contributor Author

Wilfred commented Mar 6, 2026

Fixed the issue link to keep rustbot happy.

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.

2 participants