-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE: Add != BinOp::Eq | BinOp::Ne | BinOp::Le | BinOp::Lt | BinOp::Ge | BinOp::Gt | BinOp::Offset
#137187
Comments
smaller use std::ops::Add;
trait A where
*const Self: Add,
{
const fn b(c: *const Self) -> <*const Self as Add>::Output {
c + c
}
} |
I feel like I should cc @scottmcm |
I don't think I've changed anything about this?
Is the MIR building code lowering that |
duplicate of #134587? |
@matthiaskrgr can you please not reopen an issue I closed as a duplicate without any justification for why it's not a duplicate?? It's definitely possible I was wrong, but please post a comment on why you think that! |
Would be great to lead by example and give an explanation of why you think its a dupe? When I compare this one with #134587 (comment) , I notice the following things
vs
vs
and the bisection points to a different commit
I would think that all or at least most of these would have to match for it to be a duplicate. |
auto-reduced (treereduce-rust):
original:
Version information
Possibly related line of code:
rust/compiler/rustc_const_eval/src/check_consts/check.rs
Lines 708 to 720 in ce36a96
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zincremental-verify-ich=yes -Cincremental=<dir> -Cdebuginfo=2 -Clink-dead-code=true -Zvalidate-mir --edition=2024
Program output
The text was updated successfully, but these errors were encountered: