-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4f745f
commit bc78d24
Showing
5 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
test_crates/manifest_tests/only_read_new_manifest/new/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,7 @@ | ||
[package] | ||
publish = false | ||
name = "only-read-new-manifest" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] |
6 changes: 6 additions & 0 deletions
6
test_crates/manifest_tests/only_read_new_manifest/new/src/lib.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,6 @@ | ||
// This will be removed in the `new` version to trigger the `struct_missing` lint. | ||
// This is configured to `allow` in `old/Cargo.toml` (the baseline version), | ||
// but this should not affect the lint level as the configuration should only be | ||
// read from the `new` (current) manifest, so the `struct_missing` lint should | ||
// still trigger. | ||
// pub struct StructMissing; |
10 changes: 10 additions & 0 deletions
10
test_crates/manifest_tests/only_read_new_manifest/old/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,10 @@ | ||
[package] | ||
publish = false | ||
name = "only-read-new-manifest" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
|
||
[package.metadata.cargo-semver-checks.lints] | ||
struct_missing = "allow" |
6 changes: 6 additions & 0 deletions
6
test_crates/manifest_tests/only_read_new_manifest/old/src/lib.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,6 @@ | ||
// This will be removed in the `new` version to trigger the `struct_missing` lint. | ||
// This is configured to `allow` in `old/Cargo.toml` (the baseline version), | ||
// but this should not affect the lint level as the configuration should only be | ||
// read from the `new` (current) manifest, so the `struct_missing` lint should | ||
// still trigger. | ||
pub struct StructMissing; |
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