Skip to content

make -Ctarget-feature warnings more explicitly FCWs - #162237

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:target-feature
Sep 4, 2026
Merged

make -Ctarget-feature warnings more explicitly FCWs#162237
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:target-feature

Conversation

@RalfJung

@RalfJung RalfJung commented Sep 3, 2026

Copy link
Copy Markdown
Member

In rust-lang/compiler-team#994 we agreed that

We also change the warning emitted for unknown features in -Ctarget-feature to be explicitly a future-compat warning, and eventually we make unknown features in -Ctarget-feature a hard error.

This PR implements that.
I also created a new tracking issue specifically for this FCW as the old one has all sorts of discussion about us even figuring out the problem in the first place: #162235.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 3, 2026
@rustbot

rustbot commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 75 candidates
  • Random selection from 20 candidates

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rustbot

rustbot commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

miri is developed in its own repository. If the Miri part of this change can be broken out, consider making this change to rust-lang/miri instead. However, if Miri needs adjusting for rustc changes, just ignore this message.

cc @rust-lang/miri

@JohnTitor JohnTitor left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@rust-bors

rust-bors Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f8df5fd has been approved by JohnTitor

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. 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 Sep 3, 2026
@rust-bors

This comment has been minimized.

@rust-bors rust-bors Bot removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Sep 4, 2026
@rustbot

rustbot commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main 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.

@RalfJung

RalfJung commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

@bors r=JohnTitor

@rust-bors

rust-bors Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 2fa835f has been approved by JohnTitor

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 4, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 4, 2026
make -Ctarget-feature warnings more explicitly FCWs

In rust-lang/compiler-team#994 we agreed that

> We also change the warning emitted for unknown features in -Ctarget-feature to be explicitly a future-compat warning, and eventually we make unknown features in -Ctarget-feature a hard error.

This PR implements that.
I also created a new tracking issue specifically for this FCW as the old one has all sorts of discussion about us even figuring out the problem in the first place: rust-lang#162235.
rust-bors Bot pushed a commit that referenced this pull request Sep 4, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #157808 (sanitizers: Implement support for the sanitize ignorelist)
 - #160660 (c-variadic: use `emit_ptr_va_arg` for `va_arg` on `sparc`)
 - #162237 (make -Ctarget-feature warnings more explicitly FCWs)
 - #160111 (Generalize Decodable impl for arrays to all types)
 - #162174 (Update internal docs & tests to use `!` rather than `Infallible` in relation to `Try`)
 - #162226 (Clean up the AST visitor)
rust-bors Bot pushed a commit that referenced this pull request Sep 4, 2026
…uwer

Rollup of 7 pull requests

Successful merges:

 - #157808 (sanitizers: Implement support for the sanitize ignorelist)
 - #160660 (c-variadic: use `emit_ptr_va_arg` for `va_arg` on `sparc`)
 - #162237 (make -Ctarget-feature warnings more explicitly FCWs)
 - #160111 (Generalize Decodable impl for arrays to all types)
 - #162174 (Update internal docs & tests to use `!` rather than `Infallible` in relation to `Try`)
 - #162226 (Clean up the AST visitor)
 - #162281 (rustc-dev-guide subtree update)
@rust-bors
rust-bors Bot merged commit cd1a188 into rust-lang:main Sep 4, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 4, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 4, 2026
Rollup merge of #162237 - RalfJung:target-feature, r=JohnTitor

make -Ctarget-feature warnings more explicitly FCWs

In rust-lang/compiler-team#994 we agreed that

> We also change the warning emitted for unknown features in -Ctarget-feature to be explicitly a future-compat warning, and eventually we make unknown features in -Ctarget-feature a hard error.

This PR implements that.
I also created a new tracking issue specifically for this FCW as the old one has all sorts of discussion about us even figuring out the problem in the first place: #162235.
@RalfJung
RalfJung deleted the target-feature branch September 4, 2026 11:56
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.

4 participants