Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix CI: deprecated_where_block output is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Aug 4, 2023
1 parent aeef644 commit 3908288
Showing 1 changed file with 18 additions and 31 deletions.
@@ -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:
<https://github.com/paritytech/substrate/pull/14437>
For more info see:
<https://github.com/paritytech/substrate/pull/14437>
--> tests/construct_runtime_ui/deprecated_where_block.rs:3:1
|
3 | / construct_runtime! {
Expand All @@ -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
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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<Runtime>`
note: required because it appears within the type `Event<Runtime>`
--> $WORKSPACE/frame/system/src/lib.rs
|
| pub enum Event<T: Config> {
| ^^^^^
note: required by a bound in `From`
--> $RUST/core/src/convert/mod.rs
|
| pub trait From<T>: 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<Runtime>`
Expand All @@ -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<Runtime>`
note: required because it appears within the type `Event<Runtime>`
--> $WORKSPACE/frame/system/src/lib.rs
|
| pub enum Event<T: Config> {
| ^^^^^
note: required by a bound in `TryInto`
--> $RUST/core/src/convert/mod.rs
|
| pub trait TryInto<T>: 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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<T, E> {
| ^ 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`
Expand Down Expand Up @@ -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<T>: 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
Expand Down Expand Up @@ -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<T, E> {
| ^ 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)

0 comments on commit 3908288

Please sign in to comment.