-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
type validation failed: encountered undefined bytes at (*.vtable_ptr)[3] #53401
Comments
Minimal repro: pub const STATIC_TRAIT: &Test = &();
fn main() {}
pub trait Test {
fn test() where Self: Sized {}
}
impl Test for () {} |
Fixed by #53424 -- still investigating whether that is accidental or deliberate. ;) |
I am not sure where it is getting the |
The I'll create a separate beta fix, #53424 is not backportable |
Oh, this is walking the actual vtable? Well then maybe this if fixed because I am not doing that any more.^^ I did not know that it had any meaningful layout... |
Yea, that walk was pretty useless anyway. We should just extend your code (which knows the self type) to properly check all the vtable fields instead of attempting to layout the vtable without |
When developing the library, I encountered a strange error which does not occur on a stable version of the compiler.
При разработке библиотеки я обнаружил странную ошибку, которая не возникает в стабильной версии компилятора.
(Playground)
The text was updated successfully, but these errors were encountered: