forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
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 rust-lang#13504 - epage:edition-test, r=weihanglo
test: Make `edition` explicit in packages ### What does this PR try to resolve? This ensures we don't rely on the edition default for manifests, unblocking the door for warning on unset editions. ### How should we test and review this PR? ### Additional information Alternatives considered - Augment test output for the new warnings: figured we'd want tests closer to our intention and this seemed more work to update everything - Make a builder API for generating manifests, allowing us to change the default in one place. Still an interesting idea but a lot of work for this one change. Risks - I missed that a test was specifically for unset edition but that is unlikely of a case to come up
- Loading branch information
Showing
405 changed files
with
2,174 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1074,6 +1074,7 @@ pub fn basic_manifest(name: &str, version: &str) -> String { | |
name = "{}" | ||
version = "{}" | ||
authors = [] | ||
edition = "2015" | ||
"#, | ||
name, version | ||
) | ||
|
@@ -1087,6 +1088,7 @@ pub fn basic_bin_manifest(name: &str) -> String { | |
name = "{}" | ||
version = "0.5.0" | ||
authors = ["[email protected]"] | ||
edition = "2015" | ||
[[bin]] | ||
|
@@ -1104,6 +1106,7 @@ pub fn basic_lib_manifest(name: &str) -> String { | |
name = "{}" | ||
version = "0.5.0" | ||
authors = ["[email protected]"] | ||
edition = "2015" | ||
[lib] | ||
|
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
Oops, something went wrong.