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

Relax allocator requirements on some Rc/Arc APIs. #124981

Merged
merged 2 commits into from
May 12, 2024

Commits on May 10, 2024

  1. Relax allocator requirements on some Rc APIs.

    * Remove A: Clone bound from Rc::assume_init, Rc::downcast, and Rc::downcast_unchecked.
    * Make From<Rc<[T; N]>> for Rc<[T]> allocator-aware.
    
    Internal changes:
    
    * Made Arc::internal_into_inner_with_allocator method into Arc::into_inner_with_allocator associated fn.
    * Add private Rc::into_inner_with_allocator (to match Arc), so other fns don't have to juggle ManuallyDrop.
    zachs18 committed May 10, 2024
    Configuration menu
    Copy the full SHA
    d6122f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8d8eb50 View commit details
    Browse the repository at this point in the history