-
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 when using const_evaluatable_checked #79251
Comments
@simon-auch What command are you running? I tried this code in the Playground, but I encountered an error that Code#![feature(const_generics)]
#![feature(const_evaluatable_checked)]
#[derive(Debug)]
struct Node<K, const D: usize>
where
SmallVec<K, { D * 2 }>: ,
{
keys: SmallVec<K, { D * 2 }>,
}
impl<K, const D: usize> Node<K, D>
where
SmallVec<K, { D * 2 }>: ,
{
fn new() -> Self {
panic!()
}
#[inline(never)]
fn split(&mut self, i: usize, k: K, right: bool) -> Node<K, D> {
let mut node = Node::new();
node.keys.push(k);
node
}
}
#[derive(Debug)]
struct SmallVec<T, const D: usize> {
data: [T; D],
}
impl<T, const D: usize> SmallVec<T, D> {
fn new() -> Self {
panic!()
}
} Errors
|
how strange, for me |
Just ran
Output of
Considering the rustc versions it should be the same that is currently on the playground, however there it does not cause an ICE. Maybe someone could try to reproduce this in a local environment? |
can reproduce this locally, not sure why it doesn't ICE on the playground |
cc @shepmaster -- it ICEs locally, but not on the playground |
Try with the same settings? [profile.dev]
codegen-units = 1
incremental = false
[profile.release]
codegen-units = 1
incremental = false |
That indeed removes the ICE, let me just check which one of the options it is. |
That's even weirder. Seems like this is partly an incr-comp bug then. |
Note that the ICE occurs in the incr-comp hasher (ICH):
So this seems to be an incr-comp bug. |
Reposting from Zulip:
So I removed |
I'm creating this issue mainly because it seems to be a different one than the ones listed in #76560
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: