Repository navigation
Lower attributes for functions without bodies - #162761
Conversation
|
|
This comment has been minimized.
This comment has been minimized.
29274ef to
5bf5ae2
Compare
|
|
||
| warning: the `must_use` attribute cannot be used on function params | ||
| --> $DIR/param-attrs-builtin-attrs.rs:40:7 | ||
| --> $DIR/param-attrs-builtin-attrs.rs:29:7 |
There was a problem hiding this comment.
the check for these warnings should go, since it causes double emissions
There was a problem hiding this comment.
Let's fix this in a follow-up PR, it will be quite a big diff to remove this error and replace it by target checking consistently
|
@rust-lang/lang Is this a PR that you would want to take a look at? fn help(x: fn(#[rustc_splat] usize)) {} |
|
@rustbot ready |
5bf5ae2 to
e6552cd
Compare
|
r=me then after some acknowledgement from t-lang. I think it falls under the same rule as earlier breaking changes in attrs (i.e. notify t-lang but do the change) but let them acknowledge that. Notably, this attribute is rather new, it's unlikely anyone depends on this. |
|
Just in case |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| //~| ERROR allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes | ||
| } | ||
|
|
||
| trait Test { |
There was a problem hiding this comment.
I don't know if it's worth duplicating the trait, type, and extern tests in the splat feature gate test, up to you.
There was a problem hiding this comment.
I think it's not worth duplicating the test
commented
Sep 14, 2026
This comment has been minimized.
This comment has been minimized.
commented
Sep 23, 2026
|
Agreed that this was clearly never supposed to be stable. @rfcbot reviewed |
commented
Sep 23, 2026
commented
Oct 3, 2026
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
cad361c to
9c9d810
Compare
commented
Oct 3, 2026
|
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. |
commented
Oct 3, 2026
@bors r=jdonszelmann |
commented
Oct 3, 2026
|
📋 This PR cannot be approved because it currently has the following labels: |
commented
Oct 3, 2026
|
@bors r=jdonszelmann |
View all comments
Fixes #162639
This is a temporary solution to get the bug fixed.
I'm going to see if we can move the function
hir::Params fromhir::Bodytohir::FnSig, this would cleanly fix this bug and would undo most of this PR. That is a large project which might take me some time to complete, so I'd prefer to get the bug fixed first with this workaround.Maybe r? @jdonszelmann since you have context?
cc @mejrs cause you're probably interested