Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8e54490

Browse files
authoredJan 20, 2021
Rollup merge of rust-lang#81179 - CPerezz:fix_interal_doc_warns, r=jyn514
Fix broken links with `--document-private-items` in the standard library As it was suggested in rust-lang#81037 `SpecFromIter` is not in the scope and therefore we get a warning when we try to do document private intems in `rust/library/alloc/`. This addresses rust-lang#81037 by adding the trait in the scope as ``@jyn514`` suggested 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.
2 parents 1b5144d + bc6720f commit 8e54490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/alloc/src/vec/spec_from_iter_nested.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use super::{SpecExtend, Vec};
55

66
/// Another specialization trait for Vec::from_iter
77
/// necessary to manually prioritize overlapping specializations
8-
/// see [`SpecFromIter`] for details.
8+
/// see [`SpecFromIter`](super::SpecFromIter) for details.
99
pub(super) trait SpecFromIterNested<T, I> {
1010
fn from_iter(iter: I) -> Self;
1111
}

0 commit comments

Comments
 (0)
Please sign in to comment.