-
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: assertion failed: !ty.needs_infer() #112832
Comments
searched nightlies: from nightly-2023-01-01 to nightly-2023-06-19 bisected with cargo-bisect-rustc v0.6.6Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc 2023-01-01 --end 2023-06-19 --access github |
#109629 has a dfa82e8833199efd2cc0114fed03eab53614a221 try build and it does reproduce the issue. |
The issue still persists on rust 1.72.
Error log
I have tried to fix compilation issue in gluon_salsa by explicitly specifying lifetimes, but I have ran into ICE. |
… r=aliemjay implied bounds: do not ICE on unconstrained region vars fixes rust-lang#112832 see tests/ui/implied-bounds/implied-bounds-unconstrained-2.rs for a minimal example showing why this is necessary. r? types cc `@compiler-errors` `@aliemjay` https://rust-lang.zulipchat.com/#narrow/stream/144729-t-types/topic/assoc.20type.20bound.20in.20super.20trait
The ICE has been fixed so we can restore stable compilation again. rust-lang/rust#112832
I tried this code: (minimized)
I expected to see this happen: It should compile as it does on rust 1.69 and earlier (or at least not ICE).
Instead, this happened: The program fails to compile with an ICE (see backtrace).
Meta
rustc --version --verbose
:cc gluon issue that reported this gluon-lang/gluon#951 (the error is coming from https://crates.io/crates/gluon-salsa, a fork of https://crates.io/crates/salsa)
Backtrace
The text was updated successfully, but these errors were encountered: