Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix incorrect use of syn::exports
Instead of using `syn::exports` we should import the trait from the
quote crate directly.
  • Loading branch information
bkchr committed Jan 6, 2021
commit 2f73c8beb1391c9a673677ff7909e7e85711bc35
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/chain-spec/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ proc-macro = true
proc-macro-crate = "0.1.4"
proc-macro2 = "1.0.6"
quote = "1.0.3"
syn = "1.0.7"
syn = "1.0.58"

[dev-dependencies]
2 changes: 1 addition & 1 deletion client/cli/proc-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ proc-macro = true
proc-macro-crate = "0.1.4"
proc-macro2 = "1.0.6"
quote = { version = "1.0.3", features = ["proc-macro"] }
syn = { version = "1.0.7", features = ["proc-macro", "full", "extra-traits", "parsing"] }
syn = { version = "1.0.58", features = ["proc-macro", "full", "extra-traits", "parsing"] }
2 changes: 1 addition & 1 deletion frame/staking/reward-curve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
proc-macro = true

[dependencies]
syn = { version = "1.0.7", features = ["full", "visit"] }
syn = { version = "1.0.58", features = ["full", "visit"] }
quote = "1.0.3"
proc-macro2 = "1.0.6"
proc-macro-crate = "0.1.4"
Expand Down
2 changes: 1 addition & 1 deletion frame/support/procedural/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ frame-support-procedural-tools = { version = "2.0.0", path = "./tools" }
proc-macro2 = "1.0.6"
quote = "1.0.3"
Inflector = "0.11.4"
syn = { version = "1.0.7", features = ["full"] }
syn = { version = "1.0.58", features = ["full"] }

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion frame/support/procedural/src/storage/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mod keyword {
pub struct Opt<P> {
pub inner: Option<P>,
}
impl<P: syn::export::ToTokens> syn::export::ToTokens for Opt<P> {
impl<P: quote::ToTokens> quote::ToTokens for Opt<P> {
fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) {
if let Some(ref p) = self.inner {
p.to_tokens(tokens);
Expand Down
2 changes: 1 addition & 1 deletion frame/support/procedural/tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ targets = ["x86_64-unknown-linux-gnu"]
frame-support-procedural-tools-derive = { version = "2.0.0", path = "./derive" }
proc-macro2 = "1.0.6"
quote = "1.0.3"
syn = { version = "1.0.7", features = ["full", "visit"] }
syn = { version = "1.0.58", features = ["full", "visit"] }
proc-macro-crate = "0.1.5"
2 changes: 1 addition & 1 deletion frame/support/procedural/tools/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0.6"
quote = { version = "1.0.3", features = ["proc-macro"] }
syn = { version = "1.0.7", features = ["proc-macro" ,"full", "extra-traits", "parsing"] }
syn = { version = "1.0.58", features = ["proc-macro" ,"full", "extra-traits", "parsing"] }
2 changes: 1 addition & 1 deletion primitives/api/proc-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ proc-macro = true

[dependencies]
quote = "1.0.3"
syn = { version = "1.0.8", features = ["full", "fold", "extra-traits", "visit"] }
syn = { version = "1.0.58", features = ["full", "fold", "extra-traits", "visit"] }
proc-macro2 = "1.0.6"
blake2-rfc = { version = "0.2.18", default-features = false }
proc-macro-crate = "0.1.4"
Expand Down
2 changes: 1 addition & 1 deletion primitives/debug-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ proc-macro = true

[dependencies]
quote = "1.0.3"
syn = "1.0.7"
syn = "1.0.58"
proc-macro2 = "1.0"

[features]
Expand Down
2 changes: 1 addition & 1 deletion primitives/npos-elections/compact/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
proc-macro = true

[dependencies]
syn = { version = "1.0.7", features = ["full", "visit"] }
syn = { version = "1.0.58", features = ["full", "visit"] }
quote = "1.0"
proc-macro2 = "1.0.6"
proc-macro-crate = "0.1.4"
2 changes: 1 addition & 1 deletion primitives/runtime-interface/proc-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
proc-macro = true

[dependencies]
syn = { version = "1.0.5", features = ["full", "visit", "fold", "extra-traits"] }
syn = { version = "1.0.58", features = ["full", "visit", "fold", "extra-traits"] }
quote = "1.0.3"
proc-macro2 = "1.0.3"
Inflector = "0.11.4"
Expand Down
2 changes: 1 addition & 1 deletion test-utils/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "Substrate test utilities macros"

[dependencies]
quote = "1.0.6"
syn = { version = "1.0.33", features = ["full"] }
syn = { version = "1.0.58", features = ["full"] }
proc-macro-crate = "0.1.4"

[lib]
Expand Down