Enable #[diagnostic::on_const] for local impls#154609
Enable #[diagnostic::on_const] for local impls#154609rust-bors[bot] merged 3 commits intorust-lang:mainfrom
#[diagnostic::on_const] for local impls#154609Conversation
|
r? @fmease rustbot has assigned @fmease. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| fn eq(&self, _other: &X) -> bool { | ||
| true | ||
| } | ||
| } |
There was a problem hiding this comment.
This was accidentally committed in 8d7aa5e#diff-d0c0697ed9790368cff1656ca516a1c7bd0a547a54008b56373f85b086100677
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
Enable `#[diagnostic::on_const]` for local impls Previously this attribute only did something if it was on a foreign impl.
|
This pull request was unapproved. This PR was contained in a rollup (#154951), which was unapproved. |
|
@JonathanBrouwer (Cc @oli-obk) it is the combination with #154930 that makes this PR's new UI tests fail. Aside from adjusting code in typeck, the rollup can be fixed by simply adding Let me know what you'd prefer. |
Rollup of 4 pull requests Successful merges: - #154460 (Deduplication: Pulled common logic out from lower_const_arg_struct) - #154609 (Enable `#[diagnostic::on_const]` for local impls) - #154678 (Introduce #[diagnostic::on_move] on `Rc`) - #154902 (rustdoc: Inherit inline attributes for declarative macros)
Rollup merge of #154609 - mejrs:local_on_const, r=fmease Enable `#[diagnostic::on_const]` for local impls Previously this attribute only did something if it was on a foreign impl.
Previously this attribute only did something if it was on a foreign impl.