Skip to content

Commit

Permalink
Update to 2021 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jun 30, 2023
1 parent e90d123 commit 678529b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/rust-num/num-derive"
version = "0.3.3"
readme = "README.md"
exclude = ["/bors.toml", "/ci/*", "/.github/*"]
edition = "2018"
edition = "2021"
rust-version = "1.56.0"

[dependencies]
Expand All @@ -28,13 +28,21 @@ name = "num_derive"
proc-macro = true
test = false

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

[[test]]
name = "newtype-2015"
edition = "2015"

[[test]]
name = "newtype-2018"
edition = "2018"

[[test]]
name = "trivial-2015"
edition = "2015"

[[test]]
name = "trivial-2018"
edition = "2018"
2 changes: 2 additions & 0 deletions tests/newtype-2018.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Same source, just compiled for 2018 edition
include!("newtype.rs");
2 changes: 2 additions & 0 deletions tests/trivial-2018.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Same source, just compiled for 2018 edition
include!("trivial.rs");

0 comments on commit 678529b

Please sign in to comment.