We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<PackedStorage<T> as UnknownComponentStorage>::transfer_component
This implementation is unsound:
legion/src/internals/storage/packed.rs
Lines 421 to 432 in 0d0a539
because this compiles:
fn soundness_hole() { let mut a: PackedStorage<u64> = Default::default(); let mut b: PackedStorage<u8> = Default::default(); let a: &mut dyn UnknownComponentStorage = &mut a; a.transfer_component(ArchetypeIndex(0), ComponentIndex(0), ArchetypeIndex(0), &mut b); }
Getting this UB outside of lib is tricky, however unsoundness inside the lib itself is bad too.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This implementation is unsound:
legion/src/internals/storage/packed.rs
Lines 421 to 432 in 0d0a539
because this compiles:
Getting this UB outside of lib is tricky, however unsoundness inside the lib itself is bad too.
The text was updated successfully, but these errors were encountered: