chore(cargo/dependencies/cargo-metadata): Upgrade to 0.7.1
Closes https://github.com/rust-lang/rust-clippy/issues/3692.
This commit is contained in:
parent
8a02512ab3
commit
1fe0cf6f07
|
@ -47,7 +47,7 @@ rustc_tools_util = { version = "0.1.1", path = "rustc_tools_util"}
|
|||
|
||||
[dev-dependencies]
|
||||
clippy_dev = { version = "0.0.1", path = "clippy_dev" }
|
||||
cargo_metadata = "0.6.2"
|
||||
cargo_metadata = "0.7.1"
|
||||
compiletest_rs = "0.3.18"
|
||||
lazy_static = "1.0"
|
||||
serde_derive = "1.0"
|
||||
|
|
|
@ -17,7 +17,7 @@ keywords = ["clippy", "lint", "plugin"]
|
|||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cargo_metadata = "0.6.2"
|
||||
cargo_metadata = "0.7.1"
|
||||
itertools = "0.8"
|
||||
lazy_static = "1.0.2"
|
||||
matches = "0.1.7"
|
||||
|
|
|
@ -66,7 +66,7 @@ impl LintPass for Pass {
|
|||
|
||||
impl EarlyLintPass for Pass {
|
||||
fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &Crate) {
|
||||
let metadata = if let Ok(metadata) = cargo_metadata::metadata_deps(None, true) {
|
||||
let metadata = if let Ok(metadata) = cargo_metadata::MetadataCommand::new().no_deps().exec() {
|
||||
metadata
|
||||
} else {
|
||||
warning(cx, "could not read cargo metadata");
|
||||
|
|
|
@ -41,7 +41,7 @@ impl LintPass for Pass {
|
|||
|
||||
impl EarlyLintPass for Pass {
|
||||
fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &Crate) {
|
||||
let metadata = if let Ok(metadata) = cargo_metadata::metadata_deps(None, true) {
|
||||
let metadata = if let Ok(metadata) = cargo_metadata::MetadataCommand::new().exec() {
|
||||
metadata
|
||||
} else {
|
||||
span_lint(cx, MULTIPLE_CRATE_VERSIONS, DUMMY_SP, "could not read cargo metadata");
|
||||
|
|
|
@ -37,7 +37,7 @@ impl LintPass for Pass {
|
|||
|
||||
impl EarlyLintPass for Pass {
|
||||
fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &Crate) {
|
||||
let metadata = if let Ok(metadata) = cargo_metadata::metadata(None) {
|
||||
let metadata = if let Ok(metadata) = cargo_metadata::MetadataCommand::new().no_deps().exec() {
|
||||
metadata
|
||||
} else {
|
||||
span_lint(cx, WILDCARD_DEPENDENCIES, DUMMY_SP, "could not read cargo metadata");
|
||||
|
|
Loading…
Reference in New Issue