Skip to content

Port #[rustc_dummy] #143593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Port #[rustc_dummy] #143593

wants to merge 1 commit into from

Conversation

mejrs
Copy link
Contributor

@mejrs mejrs commented Jul 7, 2025

@rustbot
Copy link
Collaborator

rustbot commented Jul 7, 2025

jdonszelmann is not on the review rotation at the moment.
They may take a while to respond.

@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 Jul 7, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jul 7, 2025

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

cc @jdonszelmann

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

Some changes occurred in compiler/rustc_attr_data_structures

cc @jdonszelmann

@jdonszelmann
Copy link
Contributor

Needs a little bit of work. If you're using the attr in an invalid position it'll be checked twice now (take a look at the other prs how they solve this)

@jdonszelmann
Copy link
Contributor

@rustbot author

@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 Jul 7, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jul 7, 2025

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

@GrigorenkoPV
Copy link
Contributor

Needs a little bit of work. If you're using the attr in an invalid position it'll be checked twice now (take a look at the other prs how they solve this)

In compiler/rustc_parse/src/validate_attr.rs, in check_builtin_meta_item you need to add sym::rustc_dummy to the giant match pattern. I'm not aware if anything else is needed.

And, as a personal request, could you please add it not next to inline, may_dangle, rustc_pass_by_value, or repr — it would help with avoiding conflicts with #143402 & #143403.

@mejrs
Copy link
Contributor Author

mejrs commented Jul 7, 2025

you need to add sym::rustc_dummy to the giant match pattern. I'm not aware if anything else is needed.

I don't, actually. That pattern is unreachable, because check_builtin_meta_item is never called for rustc_dummy.

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-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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants