Skip to content

Commit

Permalink
Auto merge of #11806 - Muscraft:backport-11630, r=weihanglo
Browse files Browse the repository at this point in the history
chore: Backport #11630 to `1.69.0`

#11630 was a fix for unused manifest keys not showing. It did not make it in before branching  `1.69.0`. This backports that fix so it will be in `1.69.0`

Commits:
fix(toml): Provide a way to show unused manifest keys for workspace inheritance
(cherry picked from commit a32af2f)

Ref: rust-lang/rust#108665
  • Loading branch information
bors committed Mar 7, 2023
2 parents 9880b40 + de0468f commit e335ad3
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 68 deletions.
10 changes: 10 additions & 0 deletions src/cargo/core/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ pub enum DepKind {
Build,
}

impl DepKind {
pub fn kind_table(&self) -> &'static str {
match self {
DepKind::Normal => "dependencies",
DepKind::Development => "dev-dependencies",
DepKind::Build => "build-dependencies",
}
}
}

impl ser::Serialize for DepKind {
fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error>
where
Expand Down
Loading

0 comments on commit e335ad3

Please sign in to comment.