-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: No HirID for DefId(...)
with feature generic_assert
#123629
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-generic_assert
`#![feature(generic_assert)]`
F-non_lifetime_binders
`#![feature(non_lifetime_binders)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
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
Related: #120612 |
Add crate-feature in source and run cargo rustc-bisect. #![feature(generic_assert)]
fn foo()
where
for<const N: usize = {
|| {
assert!(u1 == u2);
};
}> ():,
{
} bisected with cargo-bisect-rustc v0.6.8Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start 2024-01-01 --end 2024-04-14 --preserve --regress ice
|
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Sep 7, 2024
add a few more crashtests Added them for rust-lang#123629, rust-lang#127033 and rust-lang#129372.
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Sep 8, 2024
Rollup merge of rust-lang#129869 - cyrgani:master, r=Mark-Simulacrum add a few more crashtests Added them for rust-lang#123629, rust-lang#127033 and rust-lang#129372.
@rustbot label +S-bug-has-test |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: This is a bug.
F-generic_assert
`#![feature(generic_assert)]`
F-non_lifetime_binders
`#![feature(non_lifetime_binders)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
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
rustc -Zcrate-attr="feature(generic_assert)"
rust/compiler/rustc_middle/src/hir/mod.rs
Line 168 in 9d5cdf7
Code
(reduced)
Original Code
Meta
rustc --version --verbose
:Command
rustc -Zcrate-attr="feature(generic_assert)"
Error output
Backtrace
The text was updated successfully, but these errors were encountered: