Skip to content

Improve testing and error messages for malformed attributes #143181

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 5 commits into
base: master
Choose a base branch
from

Conversation

JonathanBrouwer
Copy link
Contributor

This PR has been split into 5 commits for reviewability, I recommend reviewing them one-by-one.
This first commit introduces more tests, the other 4 commits fix 4 bugs discovered by the test.

r? @oli-obk
cc @jdonszelmann

Fixes #143136

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

rustbot commented Jun 29, 2025

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@rustbot

This comment has been minimized.

@JonathanBrouwer JonathanBrouwer force-pushed the malformed-attrs branch 2 times, most recently from 9c584ae to 3efec45 Compare June 29, 2025 09:54
@JonathanBrouwer
Copy link
Contributor Author

^ Rebased on #143138, should be ready to be reviewed now

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.

Double help message for new attribute parsing
3 participants