Fix incorrect use of syn::exports (#7838)

* Fix incorrect use of syn::exports

Instead of using `syn::exports` we should import the trait from the
quote crate directly.

* Use own macro for test cases to fix compilation with latest syn

* Fix test
This commit is contained in:
Bastian Köcher
2021-01-06 22:22:23 +01:00
committed by GitHub
parent 7eb5113f11
commit 8cdb5c01b6
16 changed files with 86 additions and 107 deletions
+3 -16
View File
@@ -6940,6 +6940,7 @@ dependencies = [
"parity-scale-codec",
"parity-wasm 0.41.0",
"parking_lot 0.11.1",
"paste 0.1.18",
"sc-executor-common",
"sc-executor-wasmi",
"sc-executor-wasmtime",
@@ -6960,7 +6961,6 @@ dependencies = [
"sp-version",
"sp-wasm-interface",
"substrate-test-runtime",
"test-case",
"tracing",
"tracing-subscriber",
"wasmi",
@@ -9194,9 +9194,9 @@ checksum = "343f3f510c2915908f155e94f17220b19ccfacf2a64a2a5d8004f2c3e311e7fd"
[[package]]
name = "syn"
version = "1.0.48"
version = "1.0.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac"
checksum = "cc60a3d73ea6594cd712d830cc1f0390fd71542d8c8cd24e70cc54cdfd5e05d5"
dependencies = [
"proc-macro2",
"quote",
@@ -9250,19 +9250,6 @@ dependencies = [
"winapi-util",
]
[[package]]
name = "test-case"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a605baa797821796a751f4a959e1206079b24a4b7e1ed302b7d785d81a9276c9"
dependencies = [
"lazy_static",
"proc-macro2",
"quote",
"syn",
"version_check",
]
[[package]]
name = "textwrap"
version = "0.11.0"