Skip to content

Commit 563b1a2

Browse files
committed
test: Harden against 2027(?) edition
1 parent 92de1a2 commit 563b1a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testsuite/edition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ fn unset_edition_with_unset_rust_version() {
135135

136136
p.cargo("check -v")
137137
.with_stderr_data(str![[r#"
138-
[WARNING] no edition set: defaulting to the 2015 edition while the latest is 2024
138+
[WARNING] no edition set: defaulting to the 2015 edition while the latest is [..]
139139
[CHECKING] foo v0.1.0 ([ROOT]/foo)
140140
[RUNNING] `rustc [..] --edition=2015 [..]`
141141
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s

tests/testsuite/publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ fn duplicate_version() {
142142
[package]
143143
name = "foo"
144144
version = "0.0.1"
145+
edition = "2015"
145146
authors = []
146147
license = "MIT"
147148
description = "foo"
@@ -160,7 +161,6 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for
160161
[PACKAGING] foo v0.0.1 ([ROOT]/foo)
161162
[PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
162163
[VERIFYING] foo v0.0.1 ([ROOT]/foo)
163-
[WARNING] no edition set: defaulting to the 2015 edition while the latest is 2024
164164
[COMPILING] foo v0.0.1 ([ROOT]/foo/target/package/foo-0.0.1)
165165
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
166166
[UPLOADING] foo v0.0.1 ([ROOT]/foo)

0 commit comments

Comments
 (0)