Skip to content

#[cfg]: suggest alternative target_ name when the value does not match#154777

Merged
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
scrabsha:push-nunzyzrqlwqw
Apr 6, 2026
Merged

#[cfg]: suggest alternative target_ name when the value does not match#154777
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
scrabsha:push-nunzyzrqlwqw

Conversation

@scrabsha
Copy link
Copy Markdown
Contributor

@scrabsha scrabsha commented Apr 3, 2026

View all comments

Renders as:
out

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 3, 2026
@rust-log-analyzer

This comment has been minimized.

@scrabsha scrabsha force-pushed the push-nunzyzrqlwqw branch from d47248a to bf4bc77 Compare April 3, 2026 21:03
@rust-log-analyzer

This comment has been minimized.

@scrabsha scrabsha force-pushed the push-nunzyzrqlwqw branch from bf4bc77 to ca0a5e8 Compare April 3, 2026 21:40
@rust-log-analyzer

This comment has been minimized.

@scrabsha scrabsha force-pushed the push-nunzyzrqlwqw branch 2 times, most recently from db9d9a7 to 96fc8a8 Compare April 4, 2026 16:57
@rust-log-analyzer

This comment has been minimized.

@scrabsha scrabsha force-pushed the push-nunzyzrqlwqw branch from 96fc8a8 to 0a12c07 Compare April 4, 2026 17:27
@scrabsha scrabsha changed the title Suggest another target_ cfg name when the value does not match the original name #[cfg]: suggest alternative target_ name when the value does not match Apr 4, 2026
@scrabsha scrabsha force-pushed the push-nunzyzrqlwqw branch from 0a12c07 to 813eef5 Compare April 4, 2026 17:34
@scrabsha
Copy link
Copy Markdown
Contributor Author

scrabsha commented Apr 4, 2026

r? jdonszelmann

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 4, 2026

jdonszelmann is currently at their maximum review capacity.
They may take a while to respond.

@scrabsha scrabsha marked this pull request as ready for review April 4, 2026 19:05
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 4, 2026

Some changes occurred in check-cfg diagnostics

cc @Urgau

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 4, 2026
Copy link
Copy Markdown
Member

@Urgau Urgau left a comment

Choose a reason for hiding this comment

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

This is a great start! Left some comments.

View changes since this review

@jdonszelmann
Copy link
Copy Markdown
Contributor

@rustbot author

Thanks @Urgau for helping with the review! Do you want to look at it again before I review & merge it or can I finish it if your comments are addressed and my own are addressed too?

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 5, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 5, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@scrabsha scrabsha force-pushed the push-nunzyzrqlwqw branch from 813eef5 to ccad9da Compare April 5, 2026 10:47
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 5, 2026

Some changes occurred in cfg and check-cfg configuration

cc @Urgau

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 5, 2026
Copy link
Copy Markdown
Member

@Urgau Urgau left a comment

Choose a reason for hiding this comment

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

Left a nit picks.

View changes since this review

@Urgau
Copy link
Copy Markdown
Member

Urgau commented Apr 5, 2026

Do you want to look at it again before I review & merge it or can I finish it if your comments are addressed and my own are addressed too?

I did another quick review. Feel free to do our review after that.

@scrabsha scrabsha force-pushed the push-nunzyzrqlwqw branch 2 times, most recently from 275aa0d to 8a11d99 Compare April 5, 2026 15:15
Copy link
Copy Markdown
Member

@Urgau Urgau left a comment

Choose a reason for hiding this comment

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

Looks good to me (module the two nits). I will let @jdonszelmann do a final review.

View changes since this review

@scrabsha scrabsha force-pushed the push-nunzyzrqlwqw branch from 8a11d99 to 1d79216 Compare April 5, 2026 16:52
@scrabsha
Copy link
Copy Markdown
Contributor Author

scrabsha commented Apr 5, 2026

@Urgau thank you for your reviews!

Copy link
Copy Markdown
Contributor

@jdonszelmann jdonszelmann left a comment

Choose a reason for hiding this comment

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

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 6, 2026

📌 Commit 1d79216 has been approved by jdonszelmann

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 6, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 6, 2026
…szelmann

`#[cfg]`: suggest alternative `target_` name when the value does not match
rust-bors bot pushed a commit that referenced this pull request Apr 6, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #153440 (Various LTO cleanups)
 - #151899 (Constify fold, reduce and last for iterator)
 - #154561 (Suggest similar keyword when visibility is not followed by an item)
 - #154657 (Fix pattern assignment suggestions for uninitialized bindings)
 - #154717 (Fix ICE in unsafe binder discriminant helpers)
 - #154722 (fix(lints): Improve `ill_formed_attribute_input` with better help message)
 - #154777 (`#[cfg]`: suggest alternative `target_` name when the value does not match)
 - #154849 (Promote `char::is_case_ignorable` from perma-unstable to unstable)
 - #154850 (ast_validation: scalable vectors okay for rustdoc)
@rust-bors rust-bors bot merged commit cbe9c4d into rust-lang:main Apr 6, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Apr 6, 2026
rust-timer added a commit that referenced this pull request Apr 6, 2026
Rollup merge of #154777 - scrabsha:push-nunzyzrqlwqw, r=jdonszelmann

`#[cfg]`: suggest alternative `target_` name when the value does not match
@scrabsha scrabsha deleted the push-nunzyzrqlwqw branch April 6, 2026 10:32
@scrabsha
Copy link
Copy Markdown
Contributor Author

scrabsha commented Apr 6, 2026

update on this: flakiness is being addressed in #154886 :/

github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Apr 7, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#153440 (Various LTO cleanups)
 - rust-lang/rust#151899 (Constify fold, reduce and last for iterator)
 - rust-lang/rust#154561 (Suggest similar keyword when visibility is not followed by an item)
 - rust-lang/rust#154657 (Fix pattern assignment suggestions for uninitialized bindings)
 - rust-lang/rust#154717 (Fix ICE in unsafe binder discriminant helpers)
 - rust-lang/rust#154722 (fix(lints): Improve `ill_formed_attribute_input` with better help message)
 - rust-lang/rust#154777 (`#[cfg]`: suggest alternative `target_` name when the value does not match)
 - rust-lang/rust#154849 (Promote `char::is_case_ignorable` from perma-unstable to unstable)
 - rust-lang/rust#154850 (ast_validation: scalable vectors okay for rustdoc)
jhpratt added a commit to jhpratt/rust that referenced this pull request Apr 7, 2026
…JonathanBrouwer

Stabilize check-cfg suggestions for symbol

When I was working on rust-lang#154794, I found a weird CI fail rust-lang#154794 (comment), I finally found this caused by unstable cfg suggestions by using `FxHashSet`(from PR rust-lang#154777). Because my PR by luck insert a new symbol, which makes the final diagnostic order changed.

It's a standalone issue, so it's better to fix in a separate PR.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 7, 2026
…JonathanBrouwer

Stabilize check-cfg suggestions for symbol

When I was working on rust-lang#154794, I found a weird CI fail rust-lang#154794 (comment), I finally found this caused by unstable cfg suggestions by using `FxHashSet`(from PR rust-lang#154777). Because my PR by luck insert a new symbol, which makes the final diagnostic order changed.

It's a standalone issue, so it's better to fix in a separate PR.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Apr 7, 2026
…JonathanBrouwer

Stabilize check-cfg suggestions for symbol

When I was working on rust-lang#154794, I found a weird CI fail rust-lang#154794 (comment), I finally found this caused by unstable cfg suggestions by using `FxHashSet`(from PR rust-lang#154777). Because my PR by luck insert a new symbol, which makes the final diagnostic order changed.

It's a standalone issue, so it's better to fix in a separate PR.
rust-timer added a commit that referenced this pull request Apr 7, 2026
Rollup merge of #154886 - chenyukang:yukang-fix-cfg-sugg, r=JonathanBrouwer

Stabilize check-cfg suggestions for symbol

When I was working on #154794, I found a weird CI fail #154794 (comment), I finally found this caused by unstable cfg suggestions by using `FxHashSet`(from PR #154777). Because my PR by luck insert a new symbol, which makes the final diagnostic order changed.

It's a standalone issue, so it's better to fix in a separate PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants