[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240403171801.1774333-1-kanepyork@google.com>
Date: Wed, 3 Apr 2024 17:18:01 +0000
From: Kane York <kanepyork@...gle.com>
To: aliceryhl@...gle.com
Cc: a.hindborg@...sung.com, akpm@...ux-foundation.org, alex.gaynor@...il.com,
benno.lossin@...ton.me, bjorn3_gh@...tonmail.com, boqun.feng@...il.com,
colyli@...e.de, elver@...gle.com, gary@...yguo.net, keescook@...omium.org,
kuba@...nel.org, linux-kernel@...r.kernel.org, mingo@...nel.org,
ojeda@...nel.org, pabeni@...hat.com, pierre.gondois@....com,
richard.weiyang@...il.com, rust-for-linux@...r.kernel.org, wedsonaf@...il.com,
willy@...radead.org
Subject: Re: [PATCH 1/9] rust: list: add ListArc
> +impl<T: ListArcSafe<ID>, const ID: u64> ListArc<T, ID> {
> + /// Constructs a new reference counted instance of `T`.
> + pub fn try_new(contents: T) -> Result<Self, AllocError> {
> + Ok(Self::from_unique(UniqueArc::try_new(contents)?))
> + }
This needs to be updated for the `alloc` changes to accept allocator flags.
Powered by blists - more mailing lists