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

Reduce pointer casts in Box::into_boxed_slice #73459

Merged
merged 1 commit into from
Jun 19, 2020

Commits on Jun 17, 2020

  1. Reduce pointer casts in Box::into_boxed_slice

    We only need to cast the pointer once to change `Box<T>` to an array
    `Box<[T; 1]>`, then we can let unsized coercion return `Box<[T]>`.
    cuviper committed Jun 17, 2020
    Configuration menu
    Copy the full SHA
    a7c2cf8 View commit details
    Browse the repository at this point in the history