diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-09-23 00:02:49 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-09-23 21:47:23 -0700 |
| commit | f0dc35927becebf20730117a0bf00840ac1dd4ff (patch) | |
| tree | 6c4b410f13c13ba5946b7838afe8aee96271237a | |
| parent | cbbcd9f52ceef47a2855379c9b476667d0e81429 (diff) | |
| download | rust-f0dc35927becebf20730117a0bf00840ac1dd4ff.tar.gz rust-f0dc35927becebf20730117a0bf00840ac1dd4ff.zip | |
Put back one of the `use`s for intra-doc mentions
| -rw-r--r-- | library/alloc/src/collections/vec_deque/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/alloc/src/collections/vec_deque/mod.rs b/library/alloc/src/collections/vec_deque/mod.rs index 5546c9383de..2a57dad89a7 100644 --- a/library/alloc/src/collections/vec_deque/mod.rs +++ b/library/alloc/src/collections/vec_deque/mod.rs @@ -17,6 +17,12 @@ use core::ops::{Index, IndexMut, Range, RangeBounds}; use core::ptr::{self, NonNull}; use core::slice; +// This is used in a bunch of intra-doc links. +// FIXME: For some reason, `#[cfg(doc)]` wasn't sufficient, resulting in +// failures in linkchecker even though rustdoc built the docs just fine. +#[allow(unused_imports)] +use core::mem; + use crate::alloc::{Allocator, Global}; use crate::collections::TryReserveError; use crate::collections::TryReserveErrorKind; |
