Skip to content

Commit

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

Removes the warning `warning: `[target]` cannot be resolved, ignoring it.` when documenting cargo itself.
  • Loading branch information
bors committed Mar 30, 2020
2 parents 0c0231e + b5b42b6 commit 5ba0ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/util/config/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde::Deserialize;
use std::collections::{BTreeMap, HashMap};
use std::path::PathBuf;

/// Config definition of a [target.'cfg(…)'] table.
/// Config definition of a `[target.'cfg(…)']` table.
///
/// This is a subset of `TargetConfig`.
#[derive(Debug, Deserialize)]
Expand All @@ -19,7 +19,7 @@ pub struct TargetCfgConfig {
pub other: BTreeMap<String, toml::Value>,
}

/// Config definition of a [target] table.
/// Config definition of a `[target]` table.
#[derive(Debug)]
pub struct TargetConfig {
/// Process to run as a wrapper for `cargo run`, `test`, and `bench` commands.
Expand Down

0 comments on commit 5ba0ecc

Please sign in to comment.