Skip to content

fix: unconditionally pass --include-ignored for test runnables#21921

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
Amit5601:fix-test-ignored-flag
Apr 3, 2026
Merged

fix: unconditionally pass --include-ignored for test runnables#21921
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
Amit5601:fix-test-ignored-flag

Conversation

@Amit5601
Copy link
Copy Markdown
Contributor

@Amit5601 Amit5601 commented Mar 31, 2026

Fixes #21889
This replaces the conditional --ignored flag with an unconditional --include-ignored flag for test runnables.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 31, 2026
Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

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

Please also remove TestAttr, as we don't need it anymore.

View changes since this review

@Amit5601 Amit5601 requested a review from ChayimFriedman2 April 1, 2026 17:00
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot rustbot added has-merge-commits S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 2, 2026
@Amit5601 Amit5601 force-pushed the fix-test-ignored-flag branch from 034bd25 to 197aa00 Compare April 2, 2026 16:11
@rustbot rustbot removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. has-merge-commits labels Apr 2, 2026
Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

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

LGTM, just one comment. Also please squash.

View changes since this review

Comment thread crates/rust-analyzer/src/target_spec.rs Outdated

match kind {
RunnableKind::Test { test_id, attr } => {
RunnableKind::Test { test_id, .. } => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
RunnableKind::Test { test_id, .. } => {
RunnableKind::Test { test_id } => {

@Amit5601 Amit5601 requested a review from ChayimFriedman2 April 3, 2026 04:18
@ChayimFriedman2
Copy link
Copy Markdown
Contributor

Please squash.

@Amit5601 Amit5601 force-pushed the fix-test-ignored-flag branch from b5b6231 to b0ca516 Compare April 3, 2026 04:38
@rustbot

This comment has been minimized.

@ChayimFriedman2
Copy link
Copy Markdown
Contributor

You reverted recent PRs with your latest rebase. Please revert that (git reflog can be helpful).

@Amit5601 Amit5601 force-pushed the fix-test-ignored-flag branch from b0ca516 to b5b6231 Compare April 3, 2026 07:07
@rustbot

This comment has been minimized.

@Amit5601 Amit5601 force-pushed the fix-test-ignored-flag branch from b5b6231 to 1b7c1c3 Compare April 3, 2026 07:19
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 3, 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.

@Amit5601 Amit5601 force-pushed the fix-test-ignored-flag branch from 1b7c1c3 to 41596b6 Compare April 3, 2026 07:28
@Amit5601
Copy link
Copy Markdown
Contributor Author

Amit5601 commented Apr 3, 2026

@ChayimFriedman2 rebased and squashed correctly, the accidental reverts from the last push are gone.

Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

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

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Apr 3, 2026
Merged via the queue into rust-lang:master with commit 1fd88f5 Apr 3, 2026
17 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 3, 2026
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.

"Run Test" lens should pass --include-ignored instead of --ignored

3 participants