Skip to content

Conversation

JonathanBrouwer
Copy link
Contributor

Fixes #147411 (comment)

r? @jdonszelmann
@rustbot beta-nominate T-compiler

Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
@rustbot
Copy link
Collaborator

rustbot commented Oct 6, 2025

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 6, 2025
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Oct 6, 2025
@rustbot

This comment was marked as outdated.

@JonathanBrouwer
Copy link
Contributor Author

@rustbot label beta-nominated

@rustbot rustbot added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Oct 6, 2025
@JonathanBrouwer
Copy link
Contributor Author

Actually, would like to add a regression test for this
@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 6, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 6, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@jieyouxu

This comment was marked as resolved.

@JonathanBrouwer
Copy link
Contributor Author

Actually, would like to add a regression test for this
@rustbot author

I commented that above already, that's why it's waiting on author :)

@jieyouxu
Copy link
Member

jieyouxu commented Oct 7, 2025

Oh sorry, I managed to read every other comment but missed that specific comment 😂

@JonathanBrouwer
Copy link
Contributor Author

JonathanBrouwer commented Oct 7, 2025

@rustbot ready
r? @jieyouxu (feel free to assign back to Jana if you don't feel like reviewing this)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 7, 2025
@rustbot rustbot assigned jieyouxu and unassigned jdonszelmann Oct 7, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 7, 2025

jieyouxu is currently at their maximum review capacity.
They may take a while to respond.

|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= help: `#[link_section]` can be applied to statics and functions
= help: `#[link_section]` can be applied to functions and statics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should sort this list in the future, so this doesn't happen

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better for incremental too actually hehe

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdonszelmann
Copy link
Contributor

yea this seems like something we missed during migration. Looking good, apart from link name on traits which I agree is weird
@bors r+

@bors
Copy link
Collaborator

bors commented Oct 7, 2025

📌 Commit 1589c6c has been approved by jdonszelmann

It is now in the queue for this repository.

@bors bors 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 Oct 7, 2025
@jdonszelmann jdonszelmann assigned jdonszelmann and unassigned jieyouxu Oct 7, 2025
@jdonszelmann
Copy link
Contributor

@bors r- I guess the beta backport first should be accepted

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 7, 2025
@jdonszelmann
Copy link
Contributor

r=me when it does

@jdonszelmann
Copy link
Contributor

@bors
Copy link
Collaborator

bors commented Oct 7, 2025

📌 Commit 1589c6c has been approved by jdonszelmann

It is now in the queue for this repository.

@bors bors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 7, 2025
bors added a commit that referenced this pull request Oct 7, 2025
Rollup of 7 pull requests

Successful merges:

 - #145943 (stdlib docs: document lifetime extension for `format_args!`'s arguments)
 - #147243 (cmse: disallow `impl Trait` in `cmse-nonsecure-entry` return types)
 - #147402 ([rustdoc] Don't serialize & deserialize data that doesn't go OTW)
 - #147418 (Fix target list of `link_section`)
 - #147429 (Print tip for human error format in runtest)
 - #147441 (Fix comments error for Provenance impls)
 - #147442 (c-variadic: fix thir-print for `...` without a pattern)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 0072d0c into rust-lang:master Oct 7, 2025
10 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 7, 2025
rust-timer added a commit that referenced this pull request Oct 7, 2025
Rollup merge of #147418 - JonathanBrouwer:link_section_targets, r=jdonszelmann

Fix target list of `link_section`

Fixes #147411 (comment)

r? `@jdonszelmann`
`@rustbot` beta-nominate T-compiler
jdonszelmann added a commit to jdonszelmann/rust that referenced this pull request Oct 8, 2025
…hanBrouwer

sort attribute targets for more consistent error messages

In this PR I noticed that we don't sort attribute targets, so a rather trivial change to the source changed the ordering in an error message even though its meaning stayed the same.

See: rust-lang#147418 (comment)

I think sorting might be a good thing to do in general. I also prefer it when reading error messages. Quite a few tests changed, but not in meaning, only sorting order obviously.

r? `@jieyouxu`
rust-timer added a commit that referenced this pull request Oct 8, 2025
Rollup merge of #147445 - jdonszelmann:sort-targets, r=JonathanBrouwer

sort attribute targets for more consistent error messages

In this PR I noticed that we don't sort attribute targets, so a rather trivial change to the source changed the ordering in an error message even though its meaning stayed the same.

See: #147418 (comment)

I think sorting might be a good thing to do in general. I also prefer it when reading error messages. Quite a few tests changed, but not in meaning, only sorting order obviously.

r? `@jieyouxu`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) beta-nominated Nominated for backporting to the compiler in the beta channel. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

Applying #[link_section = ".mysection"] to a function in an impl is now a warning with potential error in the future?
5 participants