rust/library/core/src
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
..
alloc Fixing rustDoc for LayoutError. 2024-10-10 16:18:56 -04:00
array update bootstrap configs 2024-10-15 20:30:23 -07:00
ascii Add more precondition check tests 2024-10-09 19:34:27 -04:00
async_iter Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
cell Auto merge of #131767 - cuviper:bump-stage0, r=Mark-Simulacrum 2024-10-16 14:40:08 +00:00
char update bootstrap configs 2024-10-15 20:30:23 -07:00
clone CloneToUninit: use a private specialization trait 2024-07-29 20:44:43 +03:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert Fix doc nits 2024-07-26 13:26:33 +01:00
ffi Use &raw in the standard library 2024-09-25 17:03:20 -07:00
fmt Rollup merge of #131697 - ShE3py:rt-arg-lifetimes, r=Amanieu 2024-10-21 20:32:01 -07:00
future Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hash Reformat use declarations. 2024-07-29 08:26:52 +10:00
intrinsics grammar fix 2024-10-06 20:37:10 +03:00
io Fix doc nits 2024-07-26 13:26:33 +01:00
iter "innermost", "outermost", "leftmost", and "rightmost" don't need hyphens 2024-10-23 02:45:24 -07:00
macros Missing parenthesis 2024-10-18 01:04:01 +05:00
mem update bootstrap configs 2024-10-15 20:30:23 -07:00
net Rollup merge of #131616 - RalfJung:const_ip, r=tgross35 2024-10-14 06:04:29 +02:00
num update bootstrap configs 2024-10-15 20:30:23 -07:00
ops Arbitrary self types v2: (unused) Receiver trait 2024-10-25 16:30:47 +00:00
panic Rename doctest attribute standalone-crate into standalone_crate for coherency 2024-09-29 13:01:41 +02:00
prelude Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
ptr Rollup merge of #132066 - tifv:ptr-docs-typo, r=Amanieu 2024-10-23 22:11:06 +02:00
range Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
slice Rollup merge of #130991 - LaihoE:vectorized_slice_contains, r=Noratrieb 2024-10-23 22:11:02 +02:00
str Auto merge of #130223 - LaihoE:faster_str_replace, r=thomcc 2024-10-17 16:20:02 +00:00
sync move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
task replace placeholder version 2024-10-15 20:13:55 -07:00
unicode switch unicode-data back to 'static' 2024-10-13 11:53:06 +02:00
any.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
arch.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
ascii.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
asserting.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bool.rs [Clippy] Swap filter_map_bool_then to use diagnostic item instead of path 2024-09-19 13:13:42 +01:00
borrow.rs Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
cell.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
clone.rs update cfgs 2024-09-05 17:24:01 +01:00
cmp.rs Remove duplicate section 2024-09-29 09:32:03 +02:00
default.rs update cfgs 2024-09-05 17:24:01 +01:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs Library: Rename "object safe" to "dyn compatible" 2024-10-09 18:48:29 +02:00
escape.rs Optimize escape_ascii 2024-10-09 17:17:50 -04:00
hint.rs add extra linebreaks so rustdoc can identify the first sentence 2024-09-01 14:22:50 -07:00
internal_macros.rs Fix doc nits 2024-07-26 13:26:33 +01:00
intrinsics.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
marker.rs Library: Rename "object safe" to "dyn compatible" 2024-10-09 18:48:29 +02:00
option.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
panic.rs simplify abort_unwind 2024-09-15 14:27:24 -04:00
panicking.rs Auto merge of #129491 - StackOverflowExcept1on:master, r=m-ou-se 2024-09-18 11:57:31 +00:00
pat.rs Add tracking issue to core-pattern-type 2024-08-07 20:43:05 -04:00
pin.rs Rename Receiver -> LegacyReceiver 2024-10-22 12:55:16 +00:00
primitive.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
primitive_docs.rs update ABI compatibility docs for new option-like rules 2024-10-21 16:25:32 +01:00
random.rs random: add tracking issue, address other comments 2024-09-23 10:36:16 +02:00
range.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
result.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
time.rs replace placeholder version 2024-10-15 20:13:55 -07:00
tuple.rs update cfgs 2024-09-05 17:24:01 +01:00
ub_checks.rs Clean up is_aligned_and_not_null 2024-10-09 19:34:27 -04:00
unit.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00