Skip to content

Commit 678529b

Browse files
committed
Update to 2021 edition
1 parent e90d123 commit 678529b

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Cargo.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repository = "https://github.com/rust-num/num-derive"
1111
version = "0.3.3"
1212
readme = "README.md"
1313
exclude = ["/bors.toml", "/ci/*", "/.github/*"]
14-
edition = "2018"
14+
edition = "2021"
1515
rust-version = "1.56.0"
1616

1717
[dependencies]
@@ -28,13 +28,21 @@ name = "num_derive"
2828
proc-macro = true
2929
test = false
3030

31-
# Most of the tests are left implicily detected, compiled for Rust 2018,
32-
# but let's try a few of them with the old 2015 edition too.
31+
# Most of the tests are left implicily detected, compiled for Rust 2021,
32+
# but let's try a few of them with the older editions too.
3333

3434
[[test]]
3535
name = "newtype-2015"
3636
edition = "2015"
3737

38+
[[test]]
39+
name = "newtype-2018"
40+
edition = "2018"
41+
3842
[[test]]
3943
name = "trivial-2015"
4044
edition = "2015"
45+
46+
[[test]]
47+
name = "trivial-2018"
48+
edition = "2018"

tests/newtype-2018.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Same source, just compiled for 2018 edition
2+
include!("newtype.rs");

tests/trivial-2018.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Same source, just compiled for 2018 edition
2+
include!("trivial.rs");

0 commit comments

Comments
 (0)