Skip to content

Commit

Permalink
Substantial rewrites.
Browse files Browse the repository at this point in the history
There's been much discussion at recent Rust lang team meetings about this
feature, followed by further discussion on Zulip and face-to-face at
RustNation.

The main conclusions have been:
* yes we want to do this; Rust for Linux has equally important use-cases
* the previously proposed deshadowing algorithm is believed to be sound but is
  also complex and counterintuitive, so we may want to more broadly rethink
  method resolution.
* so, for now, let's do the most conservative possible version - NOT supporting
  raw pointers, Weak or NonNull - but instead erroring on any case where there
  is a possible method conflict between an outer smart pointer type and its
  contained type. This will give us maximal flexibility to relax restrictions
  in future.

This PR updates the RFC correspondingly.

Prototype code can be found at:
rust-lang/rust@master...adetaylor:rust:receiver_trait_with_target_simplified_per_rustnation
  • Loading branch information
adetaylor committed Apr 5, 2024
1 parent 13591a0 commit 79e2bb1
Showing 1 changed file with 115 additions and 64 deletions.
Loading

0 comments on commit 79e2bb1

Please sign in to comment.