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

Arbitrary self types v2: (unused) Receiver trait #132144

Merged
merged 1 commit into from
Nov 12, 2024

Commits on Oct 25, 2024

  1. Arbitrary self types v2: (unused) Receiver trait

    This commit contains a new Receiver trait, which is the basis for the
    Arbitrary Self Types v2 RFC. This allows smart pointers to be method
    receivers even if they're not Deref.
    
    This is currently unused by the compiler - a subsequent PR will start to
    use this for method resolution if the arbitrary_self_types feature gate
    is enabled. This is being landed first simply to make review
    simpler: if people feel this should all be in an atomic PR let me know.
    
    This is a part of the arbitrary self types v2 project,
    rust-lang/rfcs#3519
    rust-lang#44874
    
    r? @wesleywiser
    adetaylor committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    ecfcd08 View commit details
    Browse the repository at this point in the history