Skip to content

Change the default edition for cargo new to 2018#5989

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:change-default
Sep 7, 2018
Merged

Change the default edition for cargo new to 2018#5989
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:change-default

Conversation

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown

r? @matklad

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

@alexcrichton

Copy link
Copy Markdown
Member Author

r? @Mark-Simulacrum

Comment thread tests/testsuite/new.rs
#[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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@bors r+

@bors

bors commented Sep 7, 2018

Copy link
Copy Markdown
Contributor

📌 Commit cf8d6a4 has been approved by Mark-Simulacrum

@bors

bors commented Sep 7, 2018

Copy link
Copy Markdown
Contributor

⌛ 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

bors commented Sep 7, 2018

Copy link
Copy Markdown
Contributor

☀️ 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