-
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
error: internal compiler error: drop of untracked, uninitialized value #91816
Comments
I can't seem to reproduce this locally, does it go away if you update your compiler? |
Current compiler is: rustc 1.57.0 (f1edd04 2021-11-29) And the same happens when I use beta and nightly: beta: cargo 1.56.0-beta (18751dd3f 2021-09-01) I remembered I was using mold linker (https://github.com/rui314/mold) but I switched to the default linker and the same happens, other then that my setup is normal |
Actually I can confirm its reproducible, I just tried it with https://gitpod.io/ and the same thing happens maybe you didn't checkout the ice branch? |
Ahhh, oops. Didn't notice it was on a different branch. Sorry, my bad! Yes, I can reproduce it fine locally. |
MCVE: struct S<T>([T; 1]);
impl<K, V> S<(K, V)> {
pub const fn foo(mut self, value: V) -> Self {
let _arr = self.0;
self.0[0].1 = value; //~ move
self
}
}
fn main() {} This code has move errors and fails const-checking, just like the original example. The ICE occurs after errors are emitted. @sigmaSd did you truncate the logs in your original post? One option is to change the following statement to rust/compiler/rustc_mir_transform/src/elaborate_drops.rs Lines 319 to 325 in 753e569
For the non-const version, we abort before we ever get to drop elaboration due to the errors, though I'm not sure why. |
For const items rust/compiler/rustc_interface/src/passes.rs Lines 950 to 977 in 753e569
|
@ecstatic-morse yes the error log is truncated, I have a move error |
Code
The panic happens here https://github.com/sigmaSd/konster/blob/ice/src/kmap.rs#L16
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: