Update UI tests for Rust 1.64 (#12440)

* Update UI tests for Rust 1.64

* Test with the staging image

* Switch back to production
This commit is contained in:
Vlad
2022-10-10 21:04:51 +03:00
committed by GitHub
parent 54c3e7f55f
commit 896a9fc7cb
19 changed files with 80 additions and 44 deletions
@@ -18,5 +18,18 @@ note: type in trait
error[E0308]: mismatched types
--> tests/ui/impl_incorrect_method_signature.rs:19:11
|
19 | fn test(data: String) {}
| ^^^^ expected `u64`, found struct `std::string::String`
17 | / sp_api::impl_runtime_apis! {
18 | | impl self::Api<Block> for Runtime {
19 | | fn test(data: String) {}
| | ^^^^ expected `u64`, found struct `std::string::String`
20 | | }
... |
32 | | }
33 | | }
| |_- arguments to this function are incorrect
|
note: associated function defined here
--> tests/ui/impl_incorrect_method_signature.rs:13:6
|
13 | fn test(data: u64);
| ^^^^
@@ -18,9 +18,21 @@ note: type in trait
error[E0308]: mismatched types
--> tests/ui/type_reference_in_impl_runtime_apis_call.rs:19:11
|
19 | fn test(data: &u64) {
| ^^^^^^^ expected `u64`, found `&u64`
17 | / sp_api::impl_runtime_apis! {
18 | | impl self::Api<Block> for Runtime {
19 | | fn test(data: &u64) {
| | ^^^^^^^ expected `u64`, found `&u64`
20 | | unimplemented!()
... |
34 | | }
35 | | }
| |_- arguments to this function are incorrect
|
note: associated function defined here
--> tests/ui/type_reference_in_impl_runtime_apis_call.rs:13:6
|
13 | fn test(data: u64);
| ^^^^
help: consider removing the borrow
|
19 - fn test(data: &u64) {