about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-01-21 20:04:50 +0900
committerGitHub <noreply@github.com>2021-01-21 20:04:50 +0900
commitb76f0f92abd84fa30913c79e93d92ebd13bfb229 (patch)
tree912d5972db8e059f3908acba016069edfd0d362b
parentcd0c54abb9801e26c9e6e83ad8c99a39a9656922 (diff)
parentbc6720f872f759ba25329cc0a53d6bfa2c604341 (diff)
downloadrust-b76f0f92abd84fa30913c79e93d92ebd13bfb229.tar.gz
rust-b76f0f92abd84fa30913c79e93d92ebd13bfb229.zip
Rollup merge of #81179 - CPerezz:fix_interal_doc_warns, r=jyn514
Fix broken links with `--document-private-items` in the standard library

As it was suggested in #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 #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.
-rw-r--r--library/alloc/src/vec/spec_from_iter_nested.rs2
1 files changed, 1 insertions, 1 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..ec390c62165 100644
--- a/library/alloc/src/vec/spec_from_iter_nested.rs
+++ b/library/alloc/src/vec/spec_from_iter_nested.rs
@@ -5,7 +5,7 @@ use super::{SpecExtend, Vec};
 
 /// Another specialization trait for Vec::from_iter
 /// necessary to manually prioritize overlapping specializations
-/// see [`SpecFromIter`] for details.
+/// see [`SpecFromIter`](super::SpecFromIter) for details.
 pub(super) trait SpecFromIterNested<T, I> {
     fn from_iter(iter: I) -> Self;
 }