From a3713476da3581483014c464a4989e7029923416 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Date: Tue, 17 Jan 2023 11:41:09 +0200 Subject: [PATCH] Update `trybuild` to the latest version (#785) * Update to trybuild version 1.0.76 Signed-off-by: Alexandru Vasile * tests: Adjust testing to the new trybuild location Signed-off-by: Alexandru Vasile Signed-off-by: Alexandru Vasile --- testing/ui-tests/Cargo.toml | 2 +- testing/ui-tests/src/correct/rust-items-preserved.rs | 2 +- testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs | 2 +- testing/ui-tests/src/incorrect/url_and_path_provided.rs | 2 +- testing/ui-tests/src/incorrect/url_and_path_provided.stderr | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/testing/ui-tests/Cargo.toml b/testing/ui-tests/Cargo.toml index 0efe6c6275..01a9e54899 100644 --- a/testing/ui-tests/Cargo.toml +++ b/testing/ui-tests/Cargo.toml @@ -9,7 +9,7 @@ publish = false [dependencies] [dev-dependencies] -trybuild = "=1.0.75" +trybuild = "1.0.76" scale-info = { version = "2.3.0", features = ["bit-vec"] } frame-metadata = "15.0.0" codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] } diff --git a/testing/ui-tests/src/correct/rust-items-preserved.rs b/testing/ui-tests/src/correct/rust-items-preserved.rs index 99a31f4d20..e8269e768b 100644 --- a/testing/ui-tests/src/correct/rust-items-preserved.rs +++ b/testing/ui-tests/src/correct/rust-items-preserved.rs @@ -1,4 +1,4 @@ -#[subxt::subxt(runtime_metadata_path = "../../../artifacts/polkadot_metadata.scale")] +#[subxt::subxt(runtime_metadata_path = "../../../../artifacts/polkadot_metadata.scale")] pub mod node_runtime { pub struct SomeStruct; pub enum SomeEnum { diff --git a/testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs b/testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs index 98424f05bc..c5ad11e355 100644 --- a/testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs +++ b/testing/ui-tests/src/incorrect/substitute_path_not_absolute.rs @@ -1,4 +1,4 @@ -#[subxt::subxt(runtime_metadata_path = "../../../artifacts/polkadot_metadata.scale")] +#[subxt::subxt(runtime_metadata_path = "../../../../artifacts/polkadot_metadata.scale")] pub mod node_runtime { #[subxt::subxt(substitute_type = "sp_arithmetic::per_things::Perbill")] use sp_runtime::Perbill; diff --git a/testing/ui-tests/src/incorrect/url_and_path_provided.rs b/testing/ui-tests/src/incorrect/url_and_path_provided.rs index a6561cabf1..47fd5b5d26 100644 --- a/testing/ui-tests/src/incorrect/url_and_path_provided.rs +++ b/testing/ui-tests/src/incorrect/url_and_path_provided.rs @@ -1,5 +1,5 @@ #[subxt::subxt( - runtime_metadata_path = "../../../artifacts/polkadot_metadata.scale", + runtime_metadata_path = "../../../../artifacts/polkadot_metadata.scale", runtime_metadata_url = "wss://rpc.polkadot.io:443" )] pub mod node_runtime {} diff --git a/testing/ui-tests/src/incorrect/url_and_path_provided.stderr b/testing/ui-tests/src/incorrect/url_and_path_provided.stderr index a680ed2492..5a98277e76 100644 --- a/testing/ui-tests/src/incorrect/url_and_path_provided.stderr +++ b/testing/ui-tests/src/incorrect/url_and_path_provided.stderr @@ -2,7 +2,7 @@ error: Only one of 'runtime_metadata_path' or 'runtime_metadata_url' can be prov --> src/incorrect/url_and_path_provided.rs:1:1 | 1 | / #[subxt::subxt( -2 | | runtime_metadata_path = "../../../artifacts/polkadot_metadata.scale", +2 | | runtime_metadata_path = "../../../../artifacts/polkadot_metadata.scale", 3 | | runtime_metadata_url = "wss://rpc.polkadot.io:443" 4 | | )] | |__^