-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #5636 - ebroto:issue_5041, r=phansch
multiple_crate_versions: skip dev and build deps changelog: multiple_crate_versions: skip dev and build deps Closes #5041
- Loading branch information
Showing
10 changed files
with
85 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// compile-flags: --crate-name=cargo_common_metadata | ||
#![warn(clippy::cargo_common_metadata)] | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// compile-flags: --crate-name=cargo_common_metadata | ||
#![warn(clippy::cargo_common_metadata)] | ||
|
||
fn main() {} |
17 changes: 17 additions & 0 deletions
17
tests/ui-cargo/multiple_crate_versions/5041_allow_dev_build/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Should not lint for dev or build dependencies. See issue 5041. | ||
|
||
[package] | ||
name = "multiple_crate_versions" | ||
version = "0.1.0" | ||
publish = false | ||
|
||
# One of the versions of winapi is only a dev dependency: allowed | ||
[dependencies] | ||
ctrlc = "=3.1.0" | ||
[dev-dependencies] | ||
ansi_term = "=0.11.0" | ||
|
||
# Both versions of winapi are a build dependency: allowed | ||
[build-dependencies] | ||
ctrlc = "=3.1.0" | ||
ansi_term = "=0.11.0" |
4 changes: 4 additions & 0 deletions
4
tests/ui-cargo/multiple_crate_versions/5041_allow_dev_build/src/main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// compile-flags: --crate-name=multiple_crate_versions | ||
#![warn(clippy::multiple_crate_versions)] | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// compile-flags: --crate-name=multiple_crate_versions | ||
#![warn(clippy::multiple_crate_versions)] | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// compile-flags: --crate-name=multiple_crate_versions | ||
#![warn(clippy::multiple_crate_versions)] | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// compile-flags: --crate-name=wildcard_dependencies | ||
#![warn(clippy::wildcard_dependencies)] | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// compile-flags: --crate-name=wildcard_dependencies | ||
#![warn(clippy::wildcard_dependencies)] | ||
|
||
fn main() {} |