We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 193cb7c commit eb018e9Copy full SHA for eb018e9
1 file changed
rust/kernel/types.rs
@@ -230,7 +230,10 @@ impl<T> Opaque<T> {
230
231
/// Creates a zeroed value.
232
pub fn zeroed() -> Self {
233
- Self(MaybeUninit::zeroed())
+ Self {
234
+ value: UnsafeCell::new(MaybeUninit::zeroed()),
235
+ _pin: PhantomPinned,
236
+ }
237
}
238
239
/// Creates a pin-initializer from the given initializer closure.
0 commit comments