diff options
| author | CPerezz <c.perezbaro@gmail.com> | 2021-01-18 23:47:01 +0100 |
|---|---|---|
| committer | CPerezz <c.perezbaro@gmail.com> | 2021-01-18 23:47:01 +0100 |
| commit | 9abd80c0764e9ecbb6d2e52ab89d47bcda564588 (patch) | |
| tree | da7fe1a23f6bbf3182a63cf28f97b62a274850fa /library/alloc/src/vec | |
| parent | 5e91c4ecc09312d8b63d250a432b0f3ef83f1df7 (diff) | |
| download | rust-9abd80c0764e9ecbb6d2e52ab89d47bcda564588.tar.gz rust-9abd80c0764e9ecbb6d2e52ab89d47bcda564588.zip | |
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.
Diffstat (limited to 'library/alloc/src/vec')
| -rw-r--r-- | library/alloc/src/vec/spec_from_iter_nested.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/src/vec/spec_from_iter_nested.rs b/library/alloc/src/vec/spec_from_iter_nested.rs index 6abd4ff2a3f..3acee443379 100644 --- a/library/alloc/src/vec/spec_from_iter_nested.rs +++ b/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 |
