Globally upgrade to syn 2.x and latest quote and proc_macro2 1x versions (#13846)

* globally upgrade quote to latest 1.0.x (1.0.26)

* globally upgrade syn to final 1.0.x version (1.0.109)

* globally upgrade proc-macro2 to 1.0.56

* upgrade to syn v2.0.13 and fix everything except NestedMeta

* fix parse nested metadata code in decl_runtime_apis.rs

* Port more stuff to syn 2.0

* Make the rest compile

* Ignore error

* update to syn 2.0.14

---------

Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
Sam Johnson
2023-04-12 14:42:22 -04:00
committed by GitHub
parent 03c99fe003
commit b83bf4784e
62 changed files with 402 additions and 478 deletions
@@ -1,4 +1,4 @@
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc(PATH)`
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc("PATH")`
--> tests/pallet_ui/pallet_doc_arg_non_path.rs:3:1
|
3 | #[pallet_doc(X)]
@@ -1,4 +1,4 @@
error: The `pallet_doc` attribute must receive arguments as a list. Supported format: `pallet_doc(PATH)`
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc("PATH")`
--> tests/pallet_ui/pallet_doc_empty.rs:3:1
|
3 | #[pallet_doc]
@@ -1,4 +1,4 @@
error: The `pallet_doc` attribute must receive arguments as a list. Supported format: `pallet_doc(PATH)`
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc("PATH")`
--> tests/pallet_ui/pallet_doc_invalid_arg.rs:3:1
|
3 | #[pallet_doc = "invalid"]
@@ -1,4 +1,4 @@
error: The `pallet_doc` attribute must receive only one argument. Supported format: `pallet_doc(PATH)`
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc("PATH")`
--> tests/pallet_ui/pallet_doc_multiple_args.rs:3:1
|
3 | #[pallet_doc("A", "B")]
@@ -1,5 +1,5 @@
error: Invalid pallet::storage, unexpected generic args for ResultQuery, expected angle-bracketed arguments, found `(NonExistentValue)`
error: expected `,`
--> tests/pallet_ui/storage_result_query_parenthesized_generics.rs:18:55
|
18 | type Foo<T: Config> = StorageValue<_, u8, ResultQuery(NonExistentValue)>;
| ^^^^^^^^^^^^^^^^^^
| ^