Skip to content

Commit 911595f

Browse files
committed
Auto merge of #8911 - ehuss:rustdoc-warnings, r=alexcrichton
Fix some rustdoc warnings. Silences some warnings from rustdoc. `SourceKind` is private and can't be linked from a public type.
2 parents 79b7d29 + f626ed9 commit 911595f

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/cargo/core/compiler/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use url::Url;
1616
pub enum RustdocExternMode {
1717
/// Use a local `file://` URL.
1818
Local,
19-
/// Use a remote URL to https://doc.rust-lang.org/ (default).
19+
/// Use a remote URL to <https://doc.rust-lang.org/> (default).
2020
Remote,
2121
/// An arbitrary URL.
2222
Url(String),

src/cargo/core/source/source_id.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ lazy_static::lazy_static! {
1919
}
2020

2121
/// Unique identifier for a source of packages.
22-
///
23-
/// See also: [`SourceKind`].
2422
#[derive(Clone, Copy, Eq, Debug)]
2523
pub struct SourceId {
2624
inner: &'static SourceIdInner,

src/cargo/sources/registry/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ pub struct RegistryPackage<'a> {
240240
yanked: Option<bool>,
241241
/// Native library name this package links to.
242242
///
243-
/// Added early 2018 (see https://github.com/rust-lang/cargo/pull/4978),
243+
/// Added early 2018 (see <https://github.com/rust-lang/cargo/pull/4978>),
244244
/// can be `None` if published before then.
245245
links: Option<InternedString>,
246246
}

0 commit comments

Comments
 (0)