-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: unexpected bound var resolution for HirId(...): None
#123664
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
C-bug
Category: This is a bug.
F-effects
`#![feature(effects)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Add crate-feature in source and run cargo rustc-bisect. #![feature(effects)]
#![feature(generic_const_exprs)]
const fn with_positive<F: ~const Fn()>() {} bisected with cargo-bisect-rustc v0.6.8Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start 2023-01-01 --end 2024-04-12 --preserve --regress ice
|
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jun 28, 2024
…garing, r=oli-obk Implement new effects desugaring cc `@rust-lang/project-const-traits.` Will write down notes once I have finished. * [x] See if we want `T: Tr` to desugar into `T: Tr, T::Effects: Compat<true>` * [x] Fix ICEs on `type Assoc: ~const Tr` and `type Assoc<T: ~const Tr>` * [ ] add types and traits to minicore test * [ ] update rustc-dev-guide Fixes rust-lang#119717 Fixes rust-lang#123664 Fixes rust-lang#124857 Fixes rust-lang#126148
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 29, 2024
…ring, r=oli-obk Implement new effects desugaring cc `@rust-lang/project-const-traits.` Will write down notes once I have finished. * [x] See if we want `T: Tr` to desugar into `T: Tr, T::Effects: Compat<true>` * [x] Fix ICEs on `type Assoc: ~const Tr` and `type Assoc<T: ~const Tr>` * [ ] add types and traits to minicore test * [ ] update rustc-dev-guide Fixes rust-lang#119717 Fixes rust-lang#123664 Fixes rust-lang#124857 Fixes rust-lang#126148
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jul 11, 2024
…ring, r=oli-obk Implement new effects desugaring cc `@rust-lang/project-const-traits.` Will write down notes once I have finished. * [x] See if we want `T: Tr` to desugar into `T: Tr, T::Effects: Compat<true>` * [x] Fix ICEs on `type Assoc: ~const Tr` and `type Assoc<T: ~const Tr>` * [ ] add types and traits to minicore test * [ ] update rustc-dev-guide Fixes rust-lang#119717 Fixes rust-lang#123664 Fixes rust-lang#124857 Fixes rust-lang#126148
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: This is a bug.
F-effects
`#![feature(effects)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Note
feature(effects)
&feature(generic_const_exprs)
😅impl<'tcx> Const<'tcx>
fn try_from_lit_or_param
rust/compiler/rustc_middle/src/ty/consts.rs
Line 293 in ab5bda1
Code
Original Code
tests/ui/impl-trait/normalize-tait-in-consts.rs
#![feature(inline_const)]
is modified into#![feature(generic_const_exprs, transmutability)]
generic_const_exprs
causes ICEMeta
rustc --version --verbose
:Command
rustc -Zcrate-attr="feature(effects)"
Error output
Backtrace
Related Issues
unexpected bound var resolution
#109096 's ICE has same ICE-locrust/compiler/rustc_middle/src/ty/consts.rs
Line 158 in 7b4f489
compiler/rustc_hir_analysis/src/astconv
(currentlycompiler/rustc_hir_analysis/src/hir_ty_lowering
IIRC)The text was updated successfully, but these errors were encountered: