Skip to content

Conversation

@lapla-cogito
Copy link
Contributor

@lapla-cogito lapla-cogito commented Dec 4, 2025

close #149606

r? estebank

@rustbot
Copy link
Collaborator

rustbot commented Dec 4, 2025

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann

@rustbot rustbot 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 Dec 4, 2025
@jdonszelmann
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 4, 2025

📌 Commit 2db3c95 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 Dec 4, 2025
Comment on lines +21 to +23
LL |
LL | impl const PartialEq for Foo {
| ---------------------------- not a trait impl
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll need to fix this to specify on const impls that the annotation only works on non-const ones, but that can be done in a follow up PR.

bors added a commit that referenced this pull request Dec 4, 2025
Rollup of 9 pull requests

Successful merges:

 - #147224 (Emscripten: Turn wasm-eh on by default)
 - #149405 (Recover on misspelled item keyword)
 - #149443 (Tidying up UI tests [6/N])
 - #149524 (Move attribute safety checking to attribute parsing)
 - #149593 (powf, powi: point out SNaN non-determinism)
 - #149605 (Use branch name instead of HEAD when unshallowing)
 - #149612 (Apply the `bors` environment also to the `outcome` job)
 - #149623 (Don't require a normal tool build of clippy/rustfmt when running their test steps)
 - #149627 (Point to the item that is incorrectly annotated with `#[diagnostic::on_const]`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 69f8a5c into rust-lang:main Dec 5, 2025
11 checks passed
rust-timer added a commit that referenced this pull request Dec 5, 2025
Rollup merge of #149627 - lapla-cogito:diag_onconst, r=jdonszelmann

Point to the item that is incorrectly annotated with `#[diagnostic::on_const]`

close #149606

r? estebank
@rustbot rustbot added this to the 1.93.0 milestone Dec 5, 2025
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Dec 5, 2025
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#147224 (Emscripten: Turn wasm-eh on by default)
 - rust-lang/rust#149405 (Recover on misspelled item keyword)
 - rust-lang/rust#149443 (Tidying up UI tests [6/N])
 - rust-lang/rust#149524 (Move attribute safety checking to attribute parsing)
 - rust-lang/rust#149593 (powf, powi: point out SNaN non-determinism)
 - rust-lang/rust#149605 (Use branch name instead of HEAD when unshallowing)
 - rust-lang/rust#149612 (Apply the `bors` environment also to the `outcome` job)
 - rust-lang/rust#149623 (Don't require a normal tool build of clippy/rustfmt when running their test steps)
 - rust-lang/rust#149627 (Point to the item that is incorrectly annotated with `#[diagnostic::on_const]`)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) 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.

Also point at item being incorrectly annotated by #[diagnostic::on_const]

5 participants