Skip to content

Commit

Permalink
Fix internal rustdoc broken links
Browse files Browse the repository at this point in the history
As it was suggested in #81037 `SpecFromIter` is not
in the scope and therefore (even it should fail),
we get a warning when we try do document private
intems in `rust/library/alloc/`.

This fixes #81037 by adding the trait in the scope
and also adding an `allow(unused_imports)` flag so that
the compiler does not complain, Since the trait is not used
per se in the code, it's just needed to have properly documented
docs.
  • Loading branch information
CPerezz committed Jan 18, 2021
1 parent 5e91c4e commit 9abd80c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/alloc/src/vec/spec_from_iter_nested.rs
@@ -1,6 +1,8 @@
use core::iter::TrustedLen;
use core::ptr::{self};

#[allow(unused_imports)]
use super::SpecFromIter;
use super::{SpecExtend, Vec};

/// Another specialization trait for Vec::from_iter
Expand Down

0 comments on commit 9abd80c

Please sign in to comment.