Skip to content

Conversation

@alexcrichton
Copy link
Member

As it says on the tin! Some tests were updated to explicitly pass 2015 so they
can continue to work on stable, and otherwise cargo new should now by default
generate a 2018 project.

As it says on the tin! Some tests were updated to explicitly pass 2015 so they
can continue to work on stable, and otherwise `cargo new` should now by default
generate a 2018 project.
@rust-highfive
Copy link

r? @matklad

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @Mark-Simulacrum

#[test]
fn simple_git() {
cargo_process("new --lib foo").env("USER", "foo").run();
cargo_process("new --lib foo --edition 2015").env("USER", "foo").run();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct to assume these are temporary? I imagine in theory at least we'd want to not have this here -- most users shouldn't be passing/working in 2015 edition locally I imagine. Or, at least, we'd want tests for both.

Anyway, not a concern that needs to be resolved in this PR I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes these are temporary until the 2018 edition has hit the stable channel, and then we can change these tests back.

@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Sep 7, 2018

📌 Commit cf8d6a4 has been approved by Mark-Simulacrum

@bors
Copy link
Contributor

bors commented Sep 7, 2018

⌛ Testing commit cf8d6a4 with merge f9926c6...

bors added a commit that referenced this pull request Sep 7, 2018
Change the default edition for `cargo new` to 2018

As it says on the tin! Some tests were updated to explicitly pass 2015 so they
can continue to work on stable, and otherwise `cargo new` should now by default
generate a 2018 project.
@bors
Copy link
Contributor

bors commented Sep 7, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing f9926c6 to master...

@bors bors merged commit cf8d6a4 into rust-lang:master Sep 7, 2018
@alexcrichton alexcrichton deleted the change-default branch September 7, 2018 02:08
@ehuss ehuss added this to the 1.30.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants