Skip to content

Move check_target_feature into the attribute parser#158313

Open
obeis wants to merge 1 commit into
rust-lang:mainfrom
obeis:move-check_target_feature
Open

Move check_target_feature into the attribute parser#158313
obeis wants to merge 1 commit into
rust-lang:mainfrom
obeis:move-check_target_feature

Conversation

@obeis

@obeis obeis commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Updates #153101

Use TargetFeatureParser to reject #[target_feature] on functions marked as lang items (via #[lang = "..."] or #[panic_handler]), replacing check_target_feature in rustc_passes.

r? @JonathanBrouwer

Use `TargetFeatureParser` to reject `#[target_feature]` on functions
marked as lang items (via `#[lang = "..."]` or `#[panic_handler]`),
replacing `check_target_feature` in `rustc_passes`.
@rustbot

rustbot commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann, @JonathanBrouwer

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann, @JonathanBrouwer

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) 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 Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants