rust/library/core
Adrian Taylor ecfcd0879c 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,
https://github.com/rust-lang/rfcs/pull/3519
https://github.com/rust-lang/rust/issues/44874

r? @wesleywiser
2024-10-25 16:30:47 +00:00
..
benches Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
src Arbitrary self types v2: (unused) Receiver trait 2024-10-25 16:30:47 +00:00
tests Rollup merge of #131707 - clarfonthey:constify-core-tests, r=thomcc 2024-10-23 06:51:23 +02:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00