diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-11-22 10:37:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-22 10:37:45 +0100 |
| commit | 1c57f0ab9c58d8394b531de15423fbb4c57a2613 (patch) | |
| tree | 8af1b6d0306c8dd7c0500f364dd2c885000cde77 /src/test/incremental/thinlto | |
| parent | 9aedfd5a3bb4e4b4d900cf19780f8ed892c92af0 (diff) | |
| parent | bc1885703cb46a462a4be1eea7c4e0f9abbe7a95 (diff) | |
| download | rust-1c57f0ab9c58d8394b531de15423fbb4c57a2613.tar.gz rust-1c57f0ab9c58d8394b531de15423fbb4c57a2613.zip | |
Rollup merge of #55485 - petertodd:2018-10-manuallydrop-deref, r=TimNN
Return &T / &mut T in ManuallyDrop Deref(Mut) impl
Without this change the generated documentation looks like this:
fn deref(&self) -> &<ManuallyDrop<T> as Deref>::Target
Returning the actual type directly makes the generated docs more clear:
fn deref(&self) -> &T
Basically, compare how the impl for `Box<T>` and `ManuallyDrop<T>` looks in this screenshot:

Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
