[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87y1ne4el9.fsf@metaspace.dk>
Date: Thu, 30 Mar 2023 14:18:06 +0200
From: Andreas Hindborg <nmi@...aspace.dk>
To: y86-dev@...tonmail.com
Cc: Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Wedson Almeida Filho <wedsonaf@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Alice Ryhl <alice@...l.io>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, patches@...ts.linux.dev
Subject: Re: [PATCH v3 02/13] rust: sync: add `assume_init` to `UniqueArc`
y86-dev@...tonmail.com writes:
> From: Benno Lossin <y86-dev@...tonmail.com>
>
> Adds the `assume_init` function to `UniqueArc<MaybeUninit<T>>` that
> unsafely assumes the value to be initialized and yields a value of type
> `UniqueArc<T>`. This function is used when manually initializing the
> pointee of an `UniqueArc`.
>
> Signed-off-by: Benno Lossin <y86-dev@...tonmail.com>
> ---
Reviewed-by: Andreas Hindborg <a.hindborg@...sung.com>
Powered by blists - more mailing lists