diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-05 01:49:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 01:49:43 +0200 |
| commit | faccb0f07a50f1b19644938723f6cd2c6c5877c8 (patch) | |
| tree | d9ccb2cda8e921c5551d5bc4b55c057927dc2dbd /src/libstd/sys/unix/stack_overflow.rs | |
| parent | db7b38181c9f0b0347453780eb61c66d00bc95b9 (diff) | |
| parent | c5cdf7fe920c8cb3b60f5a6e257f6cdfb51102d3 (diff) | |
| download | rust-faccb0f07a50f1b19644938723f6cd2c6c5877c8.tar.gz rust-faccb0f07a50f1b19644938723f6cd2c6c5877c8.zip | |
Rollup merge of #71878 - main--:patch-2, r=Amanieu
Add remove_current_as_list to LinkedList's CursorMut The `remove_current` method only returns the inner `T` and deallocates the list node. This is unnecessary for move operations, where the element is going to be linked back into this (or even a different) `LinkedList`. The `remove_current_as_list` method avoids this by returning the unlinked list node as a new single-element `LinkedList` structure. (per https://github.com/rust-lang/rust/issues/58533#issuecomment-623010157)
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
