Skip to content

Commit d2e30fb

Browse files
nyurikemilio
authored andcommitted
Bump to 2021 edition
This will make it possible to introduce C-string literals and possibly other language features in separate PRs
1 parent 887dc73 commit d2e30fb

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

bindgen-cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository = "https://github.com/rust-lang/rust-bindgen"
1212
documentation = "https://docs.rs/bindgen"
1313
homepage = "https://rust-lang.github.io/rust-bindgen/"
1414
version = "0.70.1"
15-
edition = "2018"
15+
edition = "2021"
1616
rust-version = "1.70.0"
1717

1818
[[bin]]

bindgen-integration/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = "A package to test various bindgen features"
44
version = "0.1.0"
55
authors = ["Emilio Cobos Álvarez <[email protected]>"]
66
publish = false
7-
edition = "2018"
7+
edition = "2021"
88
build = "build.rs"
99

1010
[build-dependencies]

bindgen-integration/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ fn test_matching_with_rename() {
259259

260260
#[test]
261261
fn test_macro_customintkind_path() {
262-
let v: &std::any::Any = &bindings::TESTMACRO_CUSTOMINTKIND_PATH;
262+
let v: &dyn std::any::Any = &bindings::TESTMACRO_CUSTOMINTKIND_PATH;
263263
assert!(v.is::<MacroInteger>())
264264
}
265265

bindgen-tests/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bindgen-tests"
3-
edition = "2018"
3+
edition = "2021"
44
version = "0.1.0"
55
publish = false
66

bindgen-tests/tests/expectations/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
"Emilio Cobos Álvarez <[email protected]>",
88
"The Servo project developers",
99
]
10-
edition = "2018"
10+
edition = "2021"
1111
publish = false
1212

1313
[dependencies]

bindgen-tests/tests/quickchecking/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = "Bindgen property tests with quickcheck. Generate random valid C c
44
version = "0.0.0"
55
publish = false
66
rust-version = "1.70"
7-
edition = "2018"
7+
edition = "2021"
88

99
[lib]
1010
name = "quickchecking"

bindgen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repository = "https://github.com/rust-lang/rust-bindgen"
1515
documentation = "https://docs.rs/bindgen"
1616
homepage = "https://rust-lang.github.io/rust-bindgen/"
1717
version = "0.70.1"
18-
edition = "2018"
18+
edition = "2021"
1919
build = "build.rs"
2020
# If you change this, also update README.md and msrv in .github/workflows/bindgen.yml
2121
rust-version = "1.70.0"

0 commit comments

Comments
 (0)