-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Port feature
to the new attribute system
#146652
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
base: master
Are you sure you want to change the base?
Port feature
to the new attribute system
#146652
Conversation
error[E0565]: malformed `feature` attribute input | ||
--> $DIR/gated-bad-feature.rs:1:1 | ||
| | ||
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
working on a PR to re-improve these diagnostics (but for all attrs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment has been minimized.
This comment has been minimized.
6b9fb75
to
e57b585
Compare
This comment has been minimized.
This comment has been minimized.
e57b585
to
bd9995e
Compare
This comment has been minimized.
This comment has been minimized.
bd9995e
to
365b5ea
Compare
☔ The latest upstream changes (presumably #146666) made this pull request unmergeable. Please resolve the merge conflicts. |
365b5ea
to
950ea0b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
950ea0b
to
bceec5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error code changes look good to me. Letting the rest of the review to the reviewer. :)
r? compiler |
r=me with the naming issue fixed. @bors delegate=jdonszelmann |
bceec5b
to
802d92a
Compare
This comment has been minimized.
This comment has been minimized.
802d92a
to
858e26c
Compare
thanks nicholas! that's a fair point @bors r=nnethercote |
@bors rollup |
…parser, r=nnethercote Port `feature` to the new attribute system
Rollup of 10 pull requests Successful merges: - #145411 (regression test for Cow<[u8]> layout) - #146317 (Add panic=immediate-abort) - #146397 (std_detect on Darwin AArch64: update features) - #146594 (bootstrap: Don't force -static for musl targets in cc-rs) - #146652 (Port `feature` to the new attribute system) - #146791 (emit attribute for readonly non-pure inline assembly) - #146831 (Support ctr and lr as clobber-only registers in PowerPC inline assembly) - #146838 (Introduce "wrapper" helpers to rustdoc) - #146846 (btree InternalNode::new safety comments) - #146858 (Make mips64el-unknown-linux-muslabi64 link dynamically) r? `@ghost` `@rustbot` modify labels: rollup
Failed in rollup: #146873 (comment) @bors r- |
☔ The latest upstream changes (presumably #147019) made this pull request unmergeable. Please resolve the merge conflicts. |
858e26c
to
024ed3c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
024ed3c
to
3d628f0
Compare
This PR was rebased onto a different master 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. |
@rustbot blocked |
The job Click to see the possible cause of the failure (guessed by this bot)
|
…nethercote improve diagnostics for empty attributes Adds a note about them not having any effect. This was previously done for `feature` attributes but no other attributes. In [converting the `feature` parser](rust-lang#146652) I removed that note. This PR adds it back in and makes it so all attributes benefit from it. Not blocked on rust-lang#146652, either can merge first
Rollup merge of #146653 - jdonszelmann:empty-attr-diags, r=nnethercote improve diagnostics for empty attributes Adds a note about them not having any effect. This was previously done for `feature` attributes but no other attributes. In [converting the `feature` parser](#146652) I removed that note. This PR adds it back in and makes it so all attributes benefit from it. Not blocked on #146652, either can merge first
No description provided.