-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: broken mir: Cannot compare unequal types fn(&str) and for<'r> fn(&'r str) with -Zvalidate-mir #95978
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
matthiaskrgr
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
labels
Apr 12, 2022
another case type BuiltIn = for<'a> fn(&str);
struct Function {
inner: BuiltIn,
}
impl Function {
fn new(subr: BuiltIn) -> Self {
Self { inner: subr }
}
}
fn dummy(_: &str) {}
fn main() {
let func1 = Function::new(dummy);
let func2 = Function::new(dummy);
let inner: fn(&'static _) -> _ = func1.inner;
assert!(inner == func2.inner);
}
|
Probably caused by #95320 cc @JakobDegen |
Oops. That's my b, I'll have a PR up in 10 minutes |
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this issue
Apr 14, 2022
…rochenkov Consider lifetimes when comparing types for equality in MIR validator Closes rust-lang#95978 .
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this issue
Apr 15, 2022
…rochenkov Consider lifetimes when comparing types for equality in MIR validator Closes rust-lang#95978 .
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this issue
Apr 15, 2022
…rochenkov Consider lifetimes when comparing types for equality in MIR validator Closes rust-lang#95978 .
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this issue
Apr 16, 2022
…rochenkov Consider lifetimes when comparing types for equality in MIR validator Closes rust-lang#95978 .
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
code from glacier / fixed/91636.rs
Meta
rustc --version --verbose
:rustc ./91636.rs -Zvalidate-mir
Backtrace
The text was updated successfully, but these errors were encountered: