Skip to content

Commit a15d78c

Browse files
authored
Merge pull request #3888 from dtolnay-contrib/syn2
Update syn dependencies in Chapter 19 to 2.0
2 parents 7f2149c + e81491c commit a15d78c

File tree

10 files changed

+86
-89
lines changed

10 files changed

+86
-89
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch19-advanced-features/listing-19-31/hello_macro/hello_macro_derive/Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch19-advanced-features/listing-19-31/hello_macro/hello_macro_derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use proc_macro::TokenStream;
22
use quote::quote;
3-
use syn;
43

54
#[proc_macro_derive(HelloMacro)]
65
pub fn hello_macro_derive(input: TokenStream) -> TokenStream {

listings/ch19-advanced-features/listing-19-33/hello_macro/hello_macro_derive/Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch19-advanced-features/listing-19-33/hello_macro/hello_macro_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ edition = "2021"
77
proc-macro = true
88

99
[dependencies]
10-
syn = "1.0"
10+
syn = "2.0"
1111
quote = "1.0"

listings/ch19-advanced-features/listing-19-33/hello_macro/hello_macro_derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use proc_macro::TokenStream;
22
use quote::quote;
3-
use syn;
43

54
#[proc_macro_derive(HelloMacro)]
65
pub fn hello_macro_derive(input: TokenStream) -> TokenStream {

listings/ch19-advanced-features/no-listing-21-pancakes/hello_macro/hello_macro_derive/Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch19-advanced-features/no-listing-21-pancakes/hello_macro/hello_macro_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ edition = "2021"
77
proc-macro = true
88

99
[dependencies]
10-
syn = "1.0"
10+
syn = "2.0"
1111
quote = "1.0"

listings/ch19-advanced-features/no-listing-21-pancakes/hello_macro/hello_macro_derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use proc_macro::TokenStream;
22
use quote::quote;
3-
use syn;
43

54
#[proc_macro_derive(HelloMacro)]
65
pub fn hello_macro_derive(input: TokenStream) -> TokenStream {

listings/ch19-advanced-features/no-listing-21-pancakes/pancakes/Cargo.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)