Skip to content

Commit 9abd80c

Browse files
committed
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.
1 parent 5e91c4e commit 9abd80c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/alloc/src/vec/spec_from_iter_nested.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use core::iter::TrustedLen;
22
use core::ptr::{self};
33

4+
#[allow(unused_imports)]
5+
use super::SpecFromIter;
46
use super::{SpecExtend, Vec};
57

68
/// Another specialization trait for Vec::from_iter

0 commit comments

Comments
 (0)