Skip to content

Commit f0dc359

Browse files
committed
Put back one of the uses for intra-doc mentions
1 parent cbbcd9f commit f0dc359

File tree

1 file changed

+6
-0
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+6
-0
lines changed

library/alloc/src/collections/vec_deque/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ use core::ops::{Index, IndexMut, Range, RangeBounds};
1717
use core::ptr::{self, NonNull};
1818
use core::slice;
1919

20+
// This is used in a bunch of intra-doc links.
21+
// FIXME: For some reason, `#[cfg(doc)]` wasn't sufficient, resulting in
22+
// failures in linkchecker even though rustdoc built the docs just fine.
23+
#[allow(unused_imports)]
24+
use core::mem;
25+
2026
use crate::alloc::{Allocator, Global};
2127
use crate::collections::TryReserveError;
2228
use crate::collections::TryReserveErrorKind;

0 commit comments

Comments
 (0)