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

Generalise slice::contains over PartialEq #46934

Closed
wants to merge 4 commits into from

Commits on Dec 22, 2017

  1. Generalise slice::contains over PartialEq

    This allows `contains` to be used on slices to search for elements that
    satisfy a partial equality with the slice item type, rather than an
    identity. This closes rust-lang#42671. Note that string literals need to be
    referenced in this implementation due to `str` not implementing
    `Sized`. It’s likely this will have to go through a Crater run to test
    for breakage (see rust-lang#43020).
    varkor committed Dec 22, 2017
    Configuration menu
    Copy the full SHA
    90d7338 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2017

  1. Configuration menu
    Copy the full SHA
    7e4c0a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4138501 View commit details
    Browse the repository at this point in the history
  3. Add ?Sized

    varkor committed Dec 23, 2017
    Configuration menu
    Copy the full SHA
    6ea22ad View commit details
    Browse the repository at this point in the history