-
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: None in compiler/rustc_passes/src/check_const.rs #102156
Comments
couple of files from the repo that reproduce this: ./library/alloc/src/borrow.rs |
This regressed in 7a8636c cc @fee1-dead |
Thanks for the bisection. This should be a simple fix: Replace rust/compiler/rustc_passes/src/check_const.rs Line 202 in 4d44e09
with let Some(def_id) = trait_ref.trait_def_id() else { return; }; And add a test as well :) @rustbot label E-easy |
@rustbot claim |
@mucinoab Are you still working on this? If not, I would like to fix this as soon as possible. |
@fee1-dead Sorry for the delay, no problem. Thanks. |
Fix ICE in const_trait check code This fixes rust-lang#102156.
Code
code from rustc_codegen_cranelift/build_sysroot/sysroot_src/library/alloc/src/boxed.rs
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: