diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-07-18 11:29:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-18 11:29:36 -0400 |
| commit | 7fc80b6bc604d88b7be8da60765341efa69d8648 (patch) | |
| tree | ae4c5f620ff3ea00e13ba909e726feeec9ab39cb /src/liballoc/collections | |
| parent | 21d5b8bf0c26e3ee4c270ce5527df66b1af56513 (diff) | |
| parent | 38d4c1b2fc6820a48fd1ad7e8e7b68cb71c0bf79 (diff) | |
| download | rust-7fc80b6bc604d88b7be8da60765341efa69d8648.tar.gz rust-7fc80b6bc604d88b7be8da60765341efa69d8648.zip | |
Rollup merge of #61926 - scottmcm:vec-vecdeque, r=Mark-Simulacrum
Fix hyperlinks in From impls between Vec and VecDeque I'd been trying to link them, but apparently actually just added brackets: <https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#impl-From%3CVec%3CT%3E%3E> ~~This reverts commit 5168f5d220d0b30d322f254f51142931a9054056.~~ ~~(I'd previously tried to make relative links, but those failed linkcheck because the types are exported at different levels. So just skip the links -- they're already linked in the function signature anyway.)~~ This makes the links now work.
Diffstat (limited to 'src/liballoc/collections')
| -rw-r--r-- | src/liballoc/collections/vec_deque.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs index 573dd86b23a..41603b2fd54 100644 --- a/src/liballoc/collections/vec_deque.rs +++ b/src/liballoc/collections/vec_deque.rs @@ -2721,6 +2721,9 @@ impl<T: fmt::Debug> fmt::Debug for VecDeque<T> { impl<T> From<Vec<T>> for VecDeque<T> { /// Turn a [`Vec<T>`] into a [`VecDeque<T>`]. /// + /// [`Vec<T>`]: crate::vec::Vec + /// [`VecDeque<T>`]: crate::collections::VecDeque + /// /// This avoids reallocating where possible, but the conditions for that are /// strict, and subject to change, and so shouldn't be relied upon unless the /// `Vec<T>` came from `From<VecDeque<T>>` and hasn't been reallocated. @@ -2752,6 +2755,9 @@ impl<T> From<Vec<T>> for VecDeque<T> { impl<T> From<VecDeque<T>> for Vec<T> { /// Turn a [`VecDeque<T>`] into a [`Vec<T>`]. /// + /// [`Vec<T>`]: crate::vec::Vec + /// [`VecDeque<T>`]: crate::collections::VecDeque + /// /// This never needs to re-allocate, but does need to do O(n) data movement if /// the circular buffer doesn't happen to be at the beginning of the allocation. /// |
