rust/src/libcore
Konrad Borowski 1cf0db19d4 Use deref target in Pin trait implementations
Using deref target instead of pointer itself avoids providing access to
`&Rc<T>` for malicious implementations, which would allow calling
`Rc::get_mut`.

This is a breaking change necessary due to unsoundness, however
the impact of it should be minimal.

This only fixes the issue with malicious `PartialEq` implementations,
other `Pin` soundness issues are still here.

See <https://internals.rust-lang.org/t/unsoundness-in-pin/11311/73>
for more details.
2019-12-05 13:44:03 +01:00
..
array Update mod.rs 2019-11-27 10:27:30 +01:00
benches make ./x.py bench again 2019-11-23 07:06:27 +01:00
char Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
fmt Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
future
hash Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
iter Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
macros Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
mem Auto merge of #65013 - petertodd:2019-maybeuninit-debug, r=sfackler 2019-11-28 03:41:29 +00:00
num Make dec2flt_table compatible with rustfmt 2019-11-29 20:17:09 -08:00
ops Rollup merge of #66651 - Areredify:on-unimplemented-scope, r=davidtwco 2019-12-03 11:07:01 +01:00
prelude Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ptr Rollup merge of #66379 - CreepySkeleton:patch-1, r=RalfJung 2019-11-29 22:57:28 +01:00
slice Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
str Have tidy ensure that we document all unsafe blocks in libcore 2019-11-06 11:04:42 +01:00
sync Rollup merge of #66705 - pitdicker:atomic_mut_ptr, r=KodrAus 2019-11-30 16:56:47 +01:00
task Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
tests Remove unneeded prelude imports in libcore tests 2019-11-29 23:16:46 -08:00
unicode Make libcore/unicode/tables.rs compatible with rustfmt 2019-11-29 20:17:11 -08:00
alloc.rs Clarify Layout::pad_to_align safety comment 2019-11-25 16:39:24 -05:00
any.rs Minor documentation fix 2019-11-29 20:47:16 +02:00
ascii.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
bool.rs Snap cfgs to new beta 2019-09-25 08:42:46 -04:00
borrow.rs
Cargo.toml Move the matches! macro to the prelude 2019-10-23 15:35:36 +02:00
cell.rs make things ugly 2019-11-13 09:31:08 +01:00
clone.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
cmp.rs Remove ord lang item 2019-12-01 16:09:07 -05:00
convert.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
default.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ffi.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
hint.rs Fix spelling typos 2019-11-26 22:19:54 -05:00
internal_macros.rs
intrinsics.rs Check intrinsics for callability in const fns 2019-12-03 10:20:15 +01:00
iter_private.rs
lib.rs Stabilize the never_type, written !. 2019-11-21 14:55:32 +01:00
marker.rs Stabilize the never_type, written !. 2019-11-21 14:55:32 +01:00
option.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
panic.rs abort on BoxMeUp misuse 2019-11-26 09:24:39 +01:00
panicking.rs more panicking comments 2019-11-25 23:55:54 +01:00
pin.rs Use deref target in Pin trait implementations 2019-12-05 13:44:03 +01:00
raw.rs
result.rs Auto merge of #66322 - lzutao:consistent-result-map_or_else, r=dtolnay 2019-11-24 07:37:01 +00:00
time.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
tuple.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
unit.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00