From b9311ade4d69f74e1cde048e0a1083786cdd93c1 Mon Sep 17 00:00:00 2001 From: Cameron Swords Date: Fri, 15 Mar 2024 17:02:28 -0700 Subject: [PATCH 1/2] Change default TOML to be 2024 beta --- external-crates/move/crates/move-cli/src/base/new.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/external-crates/move/crates/move-cli/src/base/new.rs b/external-crates/move/crates/move-cli/src/base/new.rs index 2e0b966a40abb..339d8673fd7de 100644 --- a/external-crates/move/crates/move-cli/src/base/new.rs +++ b/external-crates/move/crates/move-cli/src/base/new.rs @@ -61,8 +61,7 @@ impl New { w, r#"[package] name = "{name}" - -# edition = "2024.alpha" # To use the Move 2024 edition, currently in alpha +edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move # license = "" # e.g., "MIT", "GPL", "Apache 2.0" # authors = ["..."] # e.g., ["Joe Smith (joesmith@noemail.com)", "John Snow (johnsnow@noemail.com)"] From e8513a1391498e473d6e1f8d8863cc742bfac175 Mon Sep 17 00:00:00 2001 From: Cameron Swords Date: Sun, 17 Mar 2024 15:55:03 -0700 Subject: [PATCH 2/2] Update test --- .../crates/move-cli/tests/build_tests/simple_new/args.exp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/external-crates/move/crates/move-cli/tests/build_tests/simple_new/args.exp b/external-crates/move/crates/move-cli/tests/build_tests/simple_new/args.exp index 6cf0550b4501e..d46c9a32f0833 100644 --- a/external-crates/move/crates/move-cli/tests/build_tests/simple_new/args.exp +++ b/external-crates/move/crates/move-cli/tests/build_tests/simple_new/args.exp @@ -2,8 +2,7 @@ Command `new P1`: External Command `cat P1/Move.toml`: [package] name = "P1" - -# edition = "2024.alpha" # To use the Move 2024 edition, currently in alpha +edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move # license = "" # e.g., "MIT", "GPL", "Apache 2.0" # authors = ["..."] # e.g., ["Joe Smith (joesmith@noemail.com)", "John Snow (johnsnow@noemail.com)"] @@ -40,8 +39,7 @@ Command `new P2 -p other_dir`: External Command `cat other_dir/Move.toml`: [package] name = "P2" - -# edition = "2024.alpha" # To use the Move 2024 edition, currently in alpha +edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move # license = "" # e.g., "MIT", "GPL", "Apache 2.0" # authors = ["..."] # e.g., ["Joe Smith (joesmith@noemail.com)", "John Snow (johnsnow@noemail.com)"]