Fix internal rustdoc broken links

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.
This commit is contained in:
CPerezz 2021-01-18 23:47:01 +01:00
parent 5e91c4ecc0
commit 9abd80c076
No known key found for this signature in database
GPG key ID: 6EE573EDC452F806

View file

@ -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