Skip to content

Commit

Permalink
Put back one of the uses for intra-doc mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm committed Sep 24, 2022
1 parent cbbcd9f commit f0dc359
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/alloc/src/collections/vec_deque/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0dc359

Please sign in to comment.