Re: [PATCH 1/9] rust: list: add ListArc

From: Kane York
Date: Wed Apr 03 2024 - 13:28:04 EST


> +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.