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
zerocopy
There's still a problem with KnownLayout when the DST is wrapped: use zerocopy::KnownLayout; #[derive(KnownLayout)] #[repr(C)] pub struct Dst([u8]); #[derive(KnownLayout)] #[repr(C)] pub struct Struct { pub dst: Dst, } cannot cast thin pointer `*mut __ZerocopyKnownLayoutMaybeUninit` to fat pointer `*mut _` rust-analyzer[E0607] rust-analyzer 1.85.1 (4eb16125 2025-03-15) No problem with rustc.
There's still a problem with KnownLayout when the DST is wrapped:
KnownLayout
use zerocopy::KnownLayout; #[derive(KnownLayout)] #[repr(C)] pub struct Dst([u8]); #[derive(KnownLayout)] #[repr(C)] pub struct Struct { pub dst: Dst, }
cannot cast thin pointer `*mut __ZerocopyKnownLayoutMaybeUninit` to fat pointer `*mut _` rust-analyzer[E0607]
rust-analyzer 1.85.1 (4eb16125 2025-03-15)
No problem with rustc.
Originally posted by @cloneable in #18682
The text was updated successfully, but these errors were encountered:
Thank you!
Sorry, something went wrong.
ShoyuVanilla
Successfully merging a pull request may close this issue.
Originally posted by @cloneable in #18682
The text was updated successfully, but these errors were encountered: