-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: compiler/rustc_middle/src/ty/layout.rs:370:17: univariant: field comes after unsized field #84108
Comments
Bisected:
|
Weirdly, the ICE only happens when you don't import static NONE: (dyn AsRef<OsStr>, u8) = ("hello", 42); but this gives an appropriate unsized field error: use std::ffi::OsStr;
static NONE: (dyn AsRef<OsStr>, u8) = ("hello", 42); |
The error happens when a rust/compiler/rustc_middle/src/ty/layout.rs Line 369 in 6d5efa9
is !sized && !ty.references_error() {
|
Assigning priority as discussed as part of the Prioritization Working Group procedure and removing @rustbot label -I-prioritize +P-medium |
Issue: rust-lang/rust#84108
Issue: rust-lang/rust#84108
Based on estebank's [comment], except I used `delay_span_bug` because it should work in more cases, and I think it expresses its intent more clearly. [comment]: rust-lang#84108 (comment)
A potential duplicate. Codestatic FOO: (PartialEq<Item>, u32); Meta
Error output
Backtrace
|
The bug should be different from #61335, as the stack traces are different.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: