Skip to content

Commit

Permalink
Auto merge of #8911 - ehuss:rustdoc-warnings, r=alexcrichton
Browse files Browse the repository at this point in the history
Fix some rustdoc warnings.

Silences some warnings from rustdoc.  `SourceKind` is private and can't be linked from a public type.
  • Loading branch information
bors committed Nov 29, 2020
2 parents 79b7d29 + f626ed9 commit 911595f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/rustdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use url::Url;
pub enum RustdocExternMode {
/// Use a local `file://` URL.
Local,
/// Use a remote URL to https://doc.rust-lang.org/ (default).
/// Use a remote URL to <https://doc.rust-lang.org/> (default).
Remote,
/// An arbitrary URL.
Url(String),
Expand Down
2 changes: 0 additions & 2 deletions src/cargo/core/source/source_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ lazy_static::lazy_static! {
}

/// Unique identifier for a source of packages.
///
/// See also: [`SourceKind`].
#[derive(Clone, Copy, Eq, Debug)]
pub struct SourceId {
inner: &'static SourceIdInner,
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub struct RegistryPackage<'a> {
yanked: Option<bool>,
/// Native library name this package links to.
///
/// Added early 2018 (see https://github.com/rust-lang/cargo/pull/4978),
/// Added early 2018 (see <https://github.com/rust-lang/cargo/pull/4978>),
/// can be `None` if published before then.
links: Option<InternedString>,
}
Expand Down

0 comments on commit 911595f

Please sign in to comment.