Skip to content
New issue

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

Make (A)Rc/Weak allocator_api APIs more consistent #119761

Closed
wants to merge 6 commits into from

Commits on Apr 29, 2024

  1. Make Rc allocator_api APIs more consistent.

    * Add `into_raw_with_allocator` on `Rc`/`Weak`
    * Remove `where A: Clone` from `Rc::assume_init`s, `Rc::unwrap_or_clone`, and `Rc::downcast(_unchecked)`
    * Add `fn allocator(&self)` to `Rc`/`Weak` for all `T: ?Sized`
    * Make `TryFrom<Rc<[T]>> for Rc<[T; N]>` allocator-aware
    zachs18 committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    f05b63b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f9d7307 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a2002ec View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    052a140 View commit details
    Browse the repository at this point in the history
  5. Add fn sync::Weak::allocator, remove A: Clone bound on Arc::unwrap_or…

    …_clone and From<Vec<T, A>> for Arc<[T], A>
    zachs18 committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    f23292a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9f3dc91 View commit details
    Browse the repository at this point in the history