Update syn, proc-macro2 and quote to 1.x (#4028)

This commit is contained in:
Bastian Köcher
2019-11-06 14:00:49 +01:00
committed by GitHub
parent cc09bfbd09
commit b484c4fbc0
20 changed files with 177 additions and 194 deletions
@@ -1,9 +0,0 @@
use client::decl_runtime_apis;
decl_runtime_apis! {
pub trait Api {
fn test(at: u64);
}
}
fn main() {}
@@ -1,5 +0,0 @@
error: `decl_runtime_apis!` adds automatically a parameter `at: &BlockId<Block>`. Please rename/remove your parameter.
--> $DIR/adding_at_parameter.rs:5:11
|
5 | fn test(at: u64);
| ^^
@@ -1,4 +1,4 @@
error: Self values are not supported.
error: `self` as argument not supported.
--> $DIR/adding_self_parameter.rs:5:11
|
5 | fn test(&self);
@@ -40,3 +40,15 @@ error[E0308]: mismatched types
|
= note: expected type `u64`
found type `&u64`
error[E0308]: mismatched types
--> $DIR/type_reference_in_impl_runtime_apis_call.rs:20:11
|
20 | fn test(data: &u64) {
| ^^^^^^^
| |
| expected u64, found &u64
| help: consider removing the borrow: `data`
|
= note: expected type `u64`
found type `&u64`