Skip to content

Fix attribute order implementation#154781

Draft
JonathanBrouwer wants to merge 1 commit intorust-lang:mainfrom
JonathanBrouwer:fix-attr-order
Draft

Fix attribute order implementation#154781
JonathanBrouwer wants to merge 1 commit intorust-lang:mainfrom
JonathanBrouwer:fix-attr-order

Conversation

@JonathanBrouwer
Copy link
Copy Markdown
Contributor

@JonathanBrouwer JonathanBrouwer commented Apr 3, 2026

The implementation in #153041 contained a mistake :c
I swapped the place where the error message was on, but did not change any code for which attribute was also selected, which explains the empty crater results.
Interestingly, the original code is broken too, before #153041 it always took the last attribute, regardless of what the AttributeOrder actually was...

Let's first see crater results before making a decision

TODO for this PR: Make better tests for this

@rustbot rustbot added 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. labels Apr 3, 2026
@JonathanBrouwer
Copy link
Copy Markdown
Contributor Author

JonathanBrouwer commented Apr 3, 2026

@bors try

cc @jdonszelmann

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Apr 3, 2026
@JonathanBrouwer

This comment was marked as outdated.

@craterbot

This comment was marked as outdated.

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 3, 2026

☀️ Try build successful (CI)
Build commit: 9228062 (9228062c11d321a3ea08123f57e47533a3c88b00, parent: 2972b5e59f1c5529b6ba770437812fd83ab4ebd4)

@JonathanBrouwer
Copy link
Copy Markdown
Contributor Author

@craterbot check

@craterbot
Copy link
Copy Markdown
Collaborator

👌 Experiment pr-154781 created and queued.
🤖 Automatically detected try build 9228062
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. 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
@craterbot
Copy link
Copy Markdown
Collaborator

🚧 Experiment pr-154781 is now running

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

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-crater Status: Waiting on a crater run to be completed. 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