Skip to content

Stop using the old validate_attr logic for stability attributes - #144358

Merged
bors merged 1 commit into
rust-lang:masterfrom
JonathanBrouwer:fix-stability-malformed
Jul 24, 2025
Merged

Stop using the old validate_attr logic for stability attributes#144358
bors merged 1 commit into
rust-lang:masterfrom
JonathanBrouwer:fix-stability-malformed

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

I think this was accidentally missed when implementing the stability attributes?

r? @oli-obk
cc @jdonszelmann

@rustbotrustbot 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 23, 2025
@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@oli-obk

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Jul 23, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit af06bb9 has been approved by oli-obk

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 23, 2025
fmease added a commit to fmease/rust that referenced this pull request Jul 23, 2025
…ormed, r=oli-obk
Stop using the old `validate_attr` logic for stability attributes
I think this was accidentally missed when implementing the stability attributes?
r? `@oli-obk`
cc `@jdonszelmann`
@fmeasefmease mentioned this pull request Jul 23, 2025
fmease added a commit to fmease/rust that referenced this pull request Jul 23, 2025
…ormed, r=oli-obk
Stop using the old `validate_attr` logic for stability attributes
I think this was accidentally missed when implementing the stability attributes?
r? ``@oli-obk``
cc ``@jdonszelmann``
@fmeasefmease mentioned this pull request Jul 23, 2025
fmease added a commit to fmease/rust that referenced this pull request Jul 24, 2025
…ormed, r=oli-obk
Stop using the old `validate_attr` logic for stability attributes
I think this was accidentally missed when implementing the stability attributes?
r? ```@oli-obk```
cc ```@jdonszelmann```
@fmeasefmease mentioned this pull request Jul 24, 2025
bors added a commit that referenced this pull request Jul 24, 2025
Rollup of 15 pull requests
Successful merges:
- #132748 (get rid of some false negatives in rustdoc::broken_intra_doc_links)
- #143374 (Unquerify extern_mod_stmt_cnum.)
- #143838 (std: net: uefi: Add support to query connection data)
- #144014 (don't link to the nightly version of the Edition Guide in stable lints)
- #144094 (Ensure we codegen the main fn)
- #144218 (Use serde for target spec json deserialize)
- #144221 (generate elf symbol version in raw-dylib)
- #144240 (Add more test case to check if the false note related to sealed trait suppressed)
- #144247 (coretests/num: use ldexp instead of hard-coding a power of 2)
- #144276 (Use less HIR in check_private_in_public.)
- #144317 (pass build.npm from bootstrap to tidy and use it for npm install)
- #144320 (rustdoc: avoid allocating a temp String for aliases in search index)
- #144334 (rustc_resolve: get rid of unused rustdoc::span_of_fragments_with_expansion)
- #144335 (Don't suggest assoc ty bound on non-angle-bracketed problematic assoc ty binding)
- #144358 (Stop using the old `validate_attr` logic for stability attributes)
r? `@ghost`
`@rustbot` modify labels: rollup
fmease added a commit to fmease/rust that referenced this pull request Jul 24, 2025
…ormed, r=oli-obk
Stop using the old `validate_attr` logic for stability attributes
I think this was accidentally missed when implementing the stability attributes?
r? ````@oli-obk````
cc ````@jdonszelmann````
@fmeasefmease mentioned this pull request Jul 24, 2025
bors added a commit that referenced this pull request Jul 24, 2025
Rollup of 16 pull requests
Successful merges:
- #143374 (Unquerify extern_mod_stmt_cnum.)
- #143838 (std: net: uefi: Add support to query connection data)
- #144014 (don't link to the nightly version of the Edition Guide in stable lints)
- #144094 (Ensure we codegen the main fn)
- #144218 (Use serde for target spec json deserialize)
- #144221 (generate elf symbol version in raw-dylib)
- #144232 (Implement support for `become` and explicit tail call codegen for the LLVM backend)
- #144240 (Add more test case to check if the false note related to sealed trait suppressed)
- #144247 (coretests/num: use ldexp instead of hard-coding a power of 2)
- #144276 (Use less HIR in check_private_in_public.)
- #144278 (add Rev::into_inner)
- #144317 (pass build.npm from bootstrap to tidy and use it for npm install)
- #144320 (rustdoc: avoid allocating a temp String for aliases in search index)
- #144334 (rustc_resolve: get rid of unused rustdoc::span_of_fragments_with_expansion)
- #144335 (Don't suggest assoc ty bound on non-angle-bracketed problematic assoc ty binding)
- #144358 (Stop using the old `validate_attr` logic for stability attributes)
r? `@ghost`
`@rustbot` modify labels: rollup
@fmeasefmease mentioned this pull request Jul 24, 2025
bors added a commit that referenced this pull request Jul 24, 2025
Rollup of 15 pull requests
Successful merges:
- #143374 (Unquerify extern_mod_stmt_cnum.)
- #143838 (std: net: uefi: Add support to query connection data)
- #144014 (don't link to the nightly version of the Edition Guide in stable lints)
- #144094 (Ensure we codegen the main fn)
- #144218 (Use serde for target spec json deserialize)
- #144221 (generate elf symbol version in raw-dylib)
- #144240 (Add more test case to check if the false note related to sealed trait suppressed)
- #144247 (coretests/num: use ldexp instead of hard-coding a power of 2)
- #144276 (Use less HIR in check_private_in_public.)
- #144278 (add Rev::into_inner)
- #144317 (pass build.npm from bootstrap to tidy and use it for npm install)
- #144320 (rustdoc: avoid allocating a temp String for aliases in search index)
- #144334 (rustc_resolve: get rid of unused rustdoc::span_of_fragments_with_expansion)
- #144335 (Don't suggest assoc ty bound on non-angle-bracketed problematic assoc ty binding)
- #144358 (Stop using the old `validate_attr` logic for stability attributes)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 6dc4152 into rust-lang:masterJul 24, 2025
11 checks passed
rust-timer added a commit that referenced this pull request Jul 24, 2025
Rollup merge of #144358 - JonathanBrouwer:fix-stability-malformed, r=oli-obk
Stop using the old `validate_attr` logic for stability attributes
I think this was accidentally missed when implementing the stability attributes?
r? `````@oli-obk`````
cc `````@jdonszelmann`````
@rustbotrustbot added this to the 1.90.0 milestone Jul 24, 2025
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jul 25, 2025
…list, r=oli-obk
Call `is_parsed_attribute` rather than keeping track of a list of parsed attributes manually
r? `@oli-obk`
Nicer code & will prevent issues like rust-lang#144358 in the future
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jul 25, 2025
…list, r=oli-obk
Call `is_parsed_attribute` rather than keeping track of a list of parsed attributes manually
r? ``@oli-obk``
Nicer code & will prevent issues like rust-lang#144358 in the future
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jul 26, 2025
…list, r=oli-obk
Call `is_parsed_attribute` rather than keeping track of a list of parsed attributes manually
r? ```@oli-obk```
Nicer code & will prevent issues like rust-lang#144358 in the future
rust-timer added a commit that referenced this pull request Jul 26, 2025
Rollup merge of #144421 - JonathanBrouwer:cleanup-malformed-list, r=oli-obk
Call `is_parsed_attribute` rather than keeping track of a list of parsed attributes manually
r? ```@oli-obk```
Nicer code & will prevent issues like #144358 in the future
github-actionsBot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Jul 28, 2025
…li-obk
Call `is_parsed_attribute` rather than keeping track of a list of parsed attributes manually
r? ```@oli-obk```
Nicer code & will prevent issues like rust-lang/rust#144358 in the future
Kobzol pushed a commit to Kobzol/rustc_codegen_gcc that referenced this pull request Dec 21, 2025
Rollup of 15 pull requests
Successful merges:
- rust-lang/rust#143374 (Unquerify extern_mod_stmt_cnum.)
- rust-lang/rust#143838 (std: net: uefi: Add support to query connection data)
- rust-lang/rust#144014 (don't link to the nightly version of the Edition Guide in stable lints)
- rust-lang/rust#144094 (Ensure we codegen the main fn)
- rust-lang/rust#144218 (Use serde for target spec json deserialize)
- rust-lang/rust#144221 (generate elf symbol version in raw-dylib)
- rust-lang/rust#144240 (Add more test case to check if the false note related to sealed trait suppressed)
- rust-lang/rust#144247 (coretests/num: use ldexp instead of hard-coding a power of 2)
- rust-lang/rust#144276 (Use less HIR in check_private_in_public.)
- rust-lang/rust#144278 (add Rev::into_inner)
- rust-lang/rust#144317 (pass build.npm from bootstrap to tidy and use it for npm install)
- rust-lang/rust#144320 (rustdoc: avoid allocating a temp String for aliases in search index)
- rust-lang/rust#144334 (rustc_resolve: get rid of unused rustdoc::span_of_fragments_with_expansion)
- rust-lang/rust#144335 (Don't suggest assoc ty bound on non-angle-bracketed problematic assoc ty binding)
- rust-lang/rust#144358 (Stop using the old `validate_attr` logic for stability attributes)
r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@JonathanBrouwer@rustbot@oli-obk@bors