summary refs log tree commit diff
path: root/src/libcore/pin.rs
AgeCommit message (Collapse)AuthorLines
2018-11-09Fix docstring spelling mistakesDaniel Alley-2/+2
2018-11-01Replace CoerceSized trait with DispatchFromDynMichael Hewson-4/+3
Rename `CoerceSized` to `DispatchFromDyn`, and reverse the direction so that, for example, you write ``` impl<T: Unsize<U>, U> DispatchFromDyn<*const U> for *const T {} ``` instead of ``` impl<T: Unsize<U>, U> DispatchFromDyn<*const T> for *const U {} ``` this way the trait is really just a subset of `CoerceUnsized`. The checks in object_safety.rs are updated for the new trait, and some documentation and method names in there are updated for the new trait name — e.g. `receiver_is_coercible` is now called `receiver_is_dispatchable`. Since the trait now works in the opposite direction, some code had to updated here for that too. I did not update the error messages for invalid `CoerceSized` (now `DispatchFromDyn`) implementations, except to find/replace `CoerceSized` with `DispatchFromDyn`. Will ask for suggestions in the PR thread.
2018-11-01Add CoerceSized impls throughout libstdMichael Hewson-1/+8
This will make receiver types like `Rc<Self>` and `Pin<&mut Self>` object-safe.
2018-10-23fix typos in various placesMatthias Krüger-1/+1
2018-09-26Remove useless lifetimes from `Pin` `impl`s.Alexander Ronald Altman-5/+5
2018-09-18Cleanup Deref impls and add ?Sized bound to &mut T implsTaylor Cramer-4/+4
2018-09-17Cleanup and fix method resolution issueTaylor Cramer-49/+93
2018-09-01Update to a new pinning API.Without Boats-74/+198
2018-08-25remove copyright headers now that they are not madatoryNiv Kaminer-10/+0
2018-08-23link to items in pin module to std docsNiv Kaminer-2/+2
2018-08-23capitalize and punctuate libcore pin moduleNiv Kaminer-1/+1
2018-08-23fix broken link to Unpin due to reexportNiv Kaminer-1/+1
2018-08-23fix PinMut documentationNiv Kaminer-4/+8
2018-08-23add top-level documentation to the std pin moduleNiv Kaminer-0/+4
2018-08-23move PinMut into pin module and export through stdNiv Kaminer-0/+162