Sitelet https://github.com/dtolnay/syn/commit/7b7b57c95a0b0cef25c8ba8b6330527761072abe
Skip to content

Commit 7b7b57c

Browse files
committed
Update to Rust 2021 edition
1 parent d9c3281 commit 7b7b57c

30 files changed

Lines changed: 21 additions & 36 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
rust: [stable, beta, 1.31.0]
39+
rust: [stable, beta, 1.56.0]
4040
include:
4141
- rust: nightly
4242
components: rustc-dev

‎Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["David Tolnay <dtolnay@gmail.com>"]
55
categories = ["development-tools::procedural-macro-helpers", "parser-implementations"]
66
description = "Parser for Rust source code"
77
documentation = "https://docs.rs/syn"
8-
edition = "2018"
8+
edition = "2021"
99
include = [
1010
"/benches/**",
1111
"/build.rs",
@@ -19,7 +19,7 @@ include = [
1919
keywords = ["macros", "syn"]
2020
license = "MIT OR Apache-2.0"
2121
repository = "https://github.com/dtolnay/syn"
22-
rust-version = "1.31"
22+
rust-version = "1.56"
2323

2424
[features]
2525
default = ["derive", "parsing", "printing", "clone-impls", "proc-macro"]

‎README.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ contains some APIs that may be useful more generally.
4646
[`syn::DeriveInput`]: https://docs.rs/syn/1.0/syn/struct.DeriveInput.html
4747
[parser functions]: https://docs.rs/syn/1.0/syn/parse/index.html
4848

49-
*Version requirement: Syn supports rustc 1.31 and up.*
49+
*Version requirement: Syn supports rustc 1.56 and up.*
5050

5151
[*Release notes*](https://github.com/dtolnay/syn/releases)
5252

@@ -104,9 +104,8 @@ pub fn my_macro(input: TokenStream) -> TokenStream {
104104
```
105105

106106
The [`heapsize`] example directory shows a complete working implementation of a
107-
derive macro. It works on any Rust compiler 1.31+. The example derives a
108-
`HeapSize` trait which computes an estimate of the amount of heap memory owned
109-
by a value.
107+
derive macro. The example derives a `HeapSize` trait which computes an estimate
108+
of the amount of heap memory owned by a value.
110109

111110
[`heapsize`]: examples/heapsize
112111

‎dev/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "syn-dev"
33
version = "0.0.0"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[lib]

‎examples/dump-syntax/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "dump-syntax"
33
version = "0.0.0"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

‎examples/heapsize/example/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "heapsize_example"
33
version = "0.0.0"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

‎examples/heapsize/heapsize/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "heapsize"
33
version = "0.0.0"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

‎examples/heapsize/heapsize_derive/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "heapsize_derive"
33
version = "0.0.0"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[lib]

‎examples/lazy-static/example/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "lazy-static-example"
33
version = "0.0.0"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[dependencies]

‎examples/lazy-static/lazy-static/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "lazy_static"
33
version = "0.0.0"
44
authors = ["David Tolnay <dtolnay@gmail.com>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
[lib]

0 commit comments

Comments
 (0)