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

Remove unsound TrustedRandomAccess implementations #85874

Merged
merged 8 commits into from
Jul 29, 2021

Commits on Jul 28, 2021

  1. Remove unsound TrustedRandomAccess implementations

    Removes the implementations that depend on the user-definable trait `Copy`.
    steffahn committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    a0d8a32 View commit details
    Browse the repository at this point in the history
  2. Improve documentation of TrustedRandomAccess

    Include new details regarding coercions to a subtype.
    These conditions also explain why the previously removed implementations
    for {array, vec, vec_deque}::IntoIter<T> were unsound, because they introduced
    an extra `T: Clone` for the TrustedRandomAccess impl, even though their parameter T
    is covariant.
    steffahn committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    1c7f27f View commit details
    Browse the repository at this point in the history
  3. Add TrustedRandomAccessNoCoerce supertrait without requirements or gu…

    …arantees about subtype coercions
    
    Update all the TrustedRandomAccess impls to also implement the new supertrait
    steffahn committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    69dd992 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bbc6b26 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f9c982c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9ff421d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    89583e9 View commit details
    Browse the repository at this point in the history
  8. Documentation improvements

    steffahn committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    6d9c0a1 View commit details
    Browse the repository at this point in the history