Add #![unstable_removed(..)] attribute to track removed features#153335
Add #![unstable_removed(..)] attribute to track removed features#153335rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
|
Some changes occurred in compiler/rustc_passes/src/check_attr.rs cc @jdonszelmann, @JonathanBrouwer Some changes occurred in compiler/rustc_hir/src/attrs cc @jdonszelmann, @JonathanBrouwer Some changes occurred in compiler/rustc_attr_parsing |
|
Failed to set assignee to
|
|
Reminder, once the PR becomes ready for a review, use |
c384f06 to
4966708
Compare
This comment has been minimized.
This comment has been minimized.
4966708 to
e4908ff
Compare
|
I've now provided an example, moving the concat_idents feature removal tracking to the new attribute in the second commit. |
|
r=me on behalf of compiler after @nia-e brings it up with T-libs on wednesday. Ping me if you need the r+ |
|
It would be worth checking if there's any in-tree dev docs on (removing) unstable features and updating them to mention this also |
This comment has been minimized.
This comment has been minimized.
|
@rustbot author |
e4908ff to
4fe9116
Compare
|
The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
|
Added docs on renaming and removing library features, changed "issue" field to "link" to be more general. |
|
@rustbot ready |
|
We discussed this in the @rust-lang/libs meeting today and we're happy to see this ^^ thanks! @rustbot label -I-libs-nominated |
This comment has been minimized.
This comment has been minimized.
|
@rustbot author |
|
@jyn514 r=me on rebase |
Move concat_idents to use the unstable_removed attribute
4fe9116 to
25a92d2
Compare
|
This PR was rebased onto a different main 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 ready |
|
@bors r+ |
…uwer Rollup of 10 pull requests Successful merges: - #155227 (`rust-analyzer` subtree update) - #153335 (Add #![unstable_removed(..)] attribute to track removed features) - #154932 (Handle RTN projections in assoc type restriction diagnostics) - #155096 (delegation: support proper interaction of user-specified args and impl Traits) - #155106 (cg_llvm: scalable vectors with `simd_cast` and `simd_select`) - #155140 (add regression test for OpenOptionsExt downstream compat) - #155182 (Make the expansion of guard metavars begin guard non-terminals) - #155226 (delegation: revert execution of hir_crate_items before delayed lowering) - #153997 (Use closures more consistently in `dep_graph.rs`.) - #155003 (update thin-vec)
Rollup merge of #153335 - Ozzy1423:removed-features, r=jdonszelmann Add #![unstable_removed(..)] attribute to track removed features Adds the #![unstable_removed(..)] attribute to enable tracking removed library features. Produce an error when a removed attribute is used. Add a test that it works. For #141617 r? @jyn514
…uwer Rollup of 10 pull requests Successful merges: - rust-lang/rust#155227 (`rust-analyzer` subtree update) - rust-lang/rust#153335 (Add #![unstable_removed(..)] attribute to track removed features) - rust-lang/rust#154932 (Handle RTN projections in assoc type restriction diagnostics) - rust-lang/rust#155096 (delegation: support proper interaction of user-specified args and impl Traits) - rust-lang/rust#155106 (cg_llvm: scalable vectors with `simd_cast` and `simd_select`) - rust-lang/rust#155140 (add regression test for OpenOptionsExt downstream compat) - rust-lang/rust#155182 (Make the expansion of guard metavars begin guard non-terminals) - rust-lang/rust#155226 (delegation: revert execution of hir_crate_items before delayed lowering) - rust-lang/rust#153997 (Use closures more consistently in `dep_graph.rs`.) - rust-lang/rust#155003 (update thin-vec)
…uwer Rollup of 10 pull requests Successful merges: - rust-lang/rust#155227 (`rust-analyzer` subtree update) - rust-lang/rust#153335 (Add #![unstable_removed(..)] attribute to track removed features) - rust-lang/rust#154932 (Handle RTN projections in assoc type restriction diagnostics) - rust-lang/rust#155096 (delegation: support proper interaction of user-specified args and impl Traits) - rust-lang/rust#155106 (cg_llvm: scalable vectors with `simd_cast` and `simd_select`) - rust-lang/rust#155140 (add regression test for OpenOptionsExt downstream compat) - rust-lang/rust#155182 (Make the expansion of guard metavars begin guard non-terminals) - rust-lang/rust#155226 (delegation: revert execution of hir_crate_items before delayed lowering) - rust-lang/rust#153997 (Use closures more consistently in `dep_graph.rs`.) - rust-lang/rust#155003 (update thin-vec)
View all comments
Adds the #![unstable_removed(..)] attribute to enable tracking removed library features.
Produce an error when a removed attribute is used.
Add a test that it works.
For #141617
r? @jyn514