From 3908288f5b31d3ddcae0b3f1e1cf074cd9767c24 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Thu, 3 Aug 2023 19:33:27 -0700 Subject: [PATCH] fix CI: deprecated_where_block output is wrong --- .../deprecated_where_block.stderr | 49 +++++++------------ 1 file changed, 18 insertions(+), 31 deletions(-) diff --git a/frame/support/test/tests/construct_runtime_ui/deprecated_where_block.stderr b/frame/support/test/tests/construct_runtime_ui/deprecated_where_block.stderr index 946277e9068e3..44b083808035c 100644 --- a/frame/support/test/tests/construct_runtime_ui/deprecated_where_block.stderr +++ b/frame/support/test/tests/construct_runtime_ui/deprecated_where_block.stderr @@ -1,10 +1,10 @@ -error: use of deprecated constant `WhereSection::_w`: - It is deprecated to use a `where` clause in `construct_runtime`. - Please instead use `frame_system::Config` to set the `Block` type and delete this clause. - It is planned to be removed in December 2023. +warning: use of deprecated constant `WhereSection::_w`: + It is deprecated to use a `where` clause in `construct_runtime`. + Please instead use `frame_system::Config` to set the `Block` type and delete this clause. + It is planned to be removed in December 2023. - For more info see: - + For more info see: + --> tests/construct_runtime_ui/deprecated_where_block.rs:3:1 | 3 | / construct_runtime! { @@ -16,8 +16,8 @@ error: use of deprecated constant `WhereSection::_w`: 11 | | } | |_^ | - = note: `-D deprecated` implied by `-D warnings` - = note: this error originates in the macro `frame_support::match_and_insert` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: `#[warn(deprecated)]` on by default + = note: this warning originates in the macro `frame_support::match_and_insert` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Runtime: Config` is not satisfied --> tests/construct_runtime_ui/deprecated_where_block.rs:3:1 @@ -66,9 +66,6 @@ note: required because it appears within the type `RuntimeEvent` ... | note: required by a bound in `Clone` --> $RUST/core/src/clone.rs - | - | pub trait Clone: Sized { - | ^^^^^ required by this bound in `Clone` = note: this error originates in the derive macro `Clone` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Runtime: Config` is not satisfied in `RuntimeEvent` @@ -148,12 +145,13 @@ error[E0277]: the trait bound `Runtime: Config` is not satisfied in `frame_syste | ||_- in this macro invocation ... | | - = note: required because it appears within the type `Event` +note: required because it appears within the type `Event` + --> $WORKSPACE/frame/system/src/lib.rs + | + | pub enum Event { + | ^^^^^ note: required by a bound in `From` --> $RUST/core/src/convert/mod.rs - | - | pub trait From: Sized { - | ^ required by this bound in `From` = note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Runtime: Config` is not satisfied in `frame_system::Event` @@ -169,12 +167,13 @@ error[E0277]: the trait bound `Runtime: Config` is not satisfied in `frame_syste | ||_- in this macro invocation ... | | - = note: required because it appears within the type `Event` +note: required because it appears within the type `Event` + --> $WORKSPACE/frame/system/src/lib.rs + | + | pub enum Event { + | ^^^^^ note: required by a bound in `TryInto` --> $RUST/core/src/convert/mod.rs - | - | pub trait TryInto: Sized { - | ^ required by this bound in `TryInto` = note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Runtime: Config` is not satisfied @@ -261,9 +260,6 @@ note: required because it appears within the type `RuntimeCall` ... | note: required by a bound in `Clone` --> $RUST/core/src/clone.rs - | - | pub trait Clone: Sized { - | ^^^^^ required by this bound in `Clone` = note: this error originates in the derive macro `Clone` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Runtime: Config` is not satisfied @@ -371,9 +367,6 @@ note: required because it appears within the type `RuntimeEvent` ... | note: required by a bound in `Result` --> $RUST/core/src/result.rs - | - | pub enum Result { - | ^ required by this bound in `Result` = note: this error originates in the derive macro `self::sp_api_hidden_includes_construct_runtime::hidden_include::codec::Decode` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Runtime: Config` is not satisfied in `RuntimeEvent` @@ -403,9 +396,6 @@ note: required because it appears within the type `RuntimeEvent` ... | note: required by a bound in `TryInto` --> $RUST/core/src/convert/mod.rs - | - | pub trait TryInto: Sized { - | ^^^^^ required by this bound in `TryInto` = note: this error originates in the macro `frame_support::construct_runtime` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Runtime: Config` is not satisfied @@ -436,7 +426,4 @@ note: required because it appears within the type `RuntimeCall` ... | note: required by a bound in `Result` --> $RUST/core/src/result.rs - | - | pub enum Result { - | ^ required by this bound in `Result` = note: this error originates in the derive macro `self::sp_api_hidden_includes_construct_runtime::hidden_include::codec::Decode` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)