mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Prepare for rust 1.62.1 (#5811)
* Update update-rust-stable script * Update UI tests for rust-1.62.1 * Use staging CI image * pin ci image Co-authored-by: alvicsam <alvicsam@gmail.com>
This commit is contained in:
@@ -29,7 +29,8 @@ variables:
|
|||||||
GIT_STRATEGY: fetch
|
GIT_STRATEGY: fetch
|
||||||
GIT_DEPTH: 100
|
GIT_DEPTH: 100
|
||||||
CI_SERVER_NAME: "GitLab CI"
|
CI_SERVER_NAME: "GitLab CI"
|
||||||
CI_IMAGE: "paritytech/ci-linux:production"
|
# change to production when this image is published
|
||||||
|
CI_IMAGE: "paritytech/ci-linux:staging@sha256:2c90b67f1452ed2d7236c2cd13f6224053a833d521b3630650b679f00874e0a9"
|
||||||
DOCKER_OS: "debian:stretch"
|
DOCKER_OS: "debian:stretch"
|
||||||
ARCH: "x86_64"
|
ARCH: "x86_64"
|
||||||
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.2.25"
|
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.2.25"
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
error[E0119]: conflicting implementations of trait `orchestra::SubsystemSender<MsgStrukt>` for type `OrchestraSubsystemSender`
|
|
||||||
--> tests/ui/err-01-duplicate-consumer.rs:19:1
|
|
||||||
|
|
|
||||||
19 | #[orchestra(signal=SigSigSig, event=Event, gen=AllMessages, error=OrchestraError)]
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
| |
|
|
||||||
| first implementation here
|
|
||||||
| conflicting implementation for `OrchestraSubsystemSender`
|
|
||||||
|
|
|
||||||
= note: this error originates in the attribute macro `orchestra` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
||||||
|
|
||||||
error[E0119]: conflicting implementations of trait `std::convert::From<MsgStrukt>` for type `AllMessages`
|
error[E0119]: conflicting implementations of trait `std::convert::From<MsgStrukt>` for type `AllMessages`
|
||||||
--> tests/ui/err-01-duplicate-consumer.rs:19:1
|
--> tests/ui/err-01-duplicate-consumer.rs:19:1
|
||||||
|
|
|
|
||||||
19 | #[orchestra(signal=SigSigSig, event=Event, gen=AllMessages, error=OrchestraError)]
|
19 | #[orchestra(signal=SigSigSig, event=Event, gen=AllMessages, error=OrchestraError)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
| |
|
| |
|
||||||
| first implementation here
|
| first implementation here
|
||||||
| conflicting implementation for `AllMessages`
|
| conflicting implementation for `AllMessages`
|
||||||
|
|
|
|
||||||
= note: this error originates in the attribute macro `orchestra` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the attribute macro `orchestra` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
|
error[E0119]: conflicting implementations of trait `AssociateOutgoing` for type `MsgStrukt`
|
||||||
|
--> tests/ui/err-01-duplicate-consumer.rs:19:1
|
||||||
|
|
|
||||||
|
19 | #[orchestra(signal=SigSigSig, event=Event, gen=AllMessages, error=OrchestraError)]
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
| |
|
||||||
|
| first implementation here
|
||||||
|
| conflicting implementation for `MsgStrukt`
|
||||||
|
|
|
||||||
|
= note: this error originates in the attribute macro `orchestra` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
error: expected `struct`
|
error: expected `struct`
|
||||||
--> $DIR/err-02-enum.rs:16:1
|
--> tests/ui/err-02-enum.rs:16:1
|
||||||
|
|
|
|
||||||
16 | enum Orchestra {
|
16 | enum Orchestra {
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
||||||
error[E0433]: failed to resolve: use of undeclared type `Orchestra`
|
error[E0433]: failed to resolve: use of undeclared type `Orchestra`
|
||||||
--> $DIR/err-02-enum.rs:27:17
|
--> tests/ui/err-02-enum.rs:27:18
|
||||||
|
|
|
|
||||||
27 | let orchestra = Orchestra::<_,_>::builder()
|
27 | let orchestra = Orchestra::<_,_>::builder()
|
||||||
| ^^^^^^^^ use of undeclared type `Orchestra`
|
| ^^^^^^^^^ use of undeclared type `Orchestra`
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
error: Duplicate subsystem names `AwesomeSubSys`
|
error: Duplicate subsystem names
|
||||||
--> $DIR/err-03-subsys-twice.rs:25:8
|
--> tests/ui/err-03-subsys-twice.rs:25:8
|
||||||
|
|
|
|
||||||
25 | sub1: AwesomeSubSys,
|
25 | sub1: AwesomeSubSys,
|
||||||
| ^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: previously defined here.
|
error: previously defined here.
|
||||||
--> $DIR/err-03-subsys-twice.rs:22:8
|
--> tests/ui/err-03-subsys-twice.rs:22:8
|
||||||
|
|
|
|
||||||
22 | sub0: AwesomeSubSys,
|
22 | sub0: AwesomeSubSys,
|
||||||
| ^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^
|
||||||
|
|
||||||
error[E0433]: failed to resolve: use of undeclared type `Orchestra`
|
error[E0433]: failed to resolve: use of undeclared type `Orchestra`
|
||||||
--> $DIR/err-03-subsys-twice.rs:34:17
|
--> tests/ui/err-03-subsys-twice.rs:34:18
|
||||||
|
|
|
|
||||||
34 | let orchestra = Orchestra::<_,_>::builder()
|
34 | let orchestra = Orchestra::<_,_>::builder()
|
||||||
| ^^^^^^^^ use of undeclared type `Orchestra`
|
| ^^^^^^^^^ use of undeclared type `Orchestra`
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
error: Must declare the orchestra error type via `error=..`.
|
error: Must declare the orchestra error type via `error=..`.
|
||||||
--> $DIR/err-04-missing-error.rs:16:1
|
--> tests/ui/err-04-missing-error.rs:16:1
|
||||||
|
|
|
|
||||||
16 | #[orchestra(signal=SigSigSig, event=Event, gen=AllMessages)]
|
16 | #[orchestra(signal=SigSigSig, event=Event, gen=AllMessages)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: this error originates in the attribute macro `orchestra` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the attribute macro `orchestra` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error[E0433]: failed to resolve: use of undeclared type `Orchestra`
|
error[E0433]: failed to resolve: use of undeclared type `Orchestra`
|
||||||
--> $DIR/err-04-missing-error.rs:30:10
|
--> tests/ui/err-04-missing-error.rs:30:10
|
||||||
|
|
|
|
||||||
30 | let _ = Orchestra::builder()
|
30 | let _ = Orchestra::builder()
|
||||||
| ^^^^^^^^ use of undeclared type `Orchestra`
|
| ^^^^^^^^^ use of undeclared type `Orchestra`
|
||||||
|
|||||||
@@ -2,14 +2,10 @@ error[E0599]: no method named `build` found for struct `OrchestraBuilder<Init<Du
|
|||||||
--> tests/ui/err-05-missing-field.rs:59:4
|
--> tests/ui/err-05-missing-field.rs:59:4
|
||||||
|
|
|
|
||||||
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
||||||
| -------------------------------------------------------------------------------- method `build` not found for this
|
| ---------------------------------------------------------------------------------- method `build` not found for this struct
|
||||||
...
|
...
|
||||||
59 | .build()
|
59 | .build()
|
||||||
| ^^^^^ method not found in `OrchestraBuilder<Init<DummySpawner>, Init<AwesomeSubSys>, Missing<f64>>`
|
| ^^^^^ method not found in `OrchestraBuilder<Init<DummySpawner>, Init<AwesomeSubSys>, Missing<f64>>`
|
||||||
|
|
|
|
||||||
= note: the method was found for
|
= note: the method was found for
|
||||||
- `OrchestraBuilder<Init<S>, Init<AwesomeSubSys>, Init<f64>>`
|
- `OrchestraBuilder<Init<S>, Init<AwesomeSubSys>, Init<f64>>`
|
||||||
= help: items from traits can only be used if the trait is implemented and in scope
|
|
||||||
= note: the following traits define an item `build`, perhaps you need to implement one of them:
|
|
||||||
candidate #1: `frame_support::traits::hooks::GenesisBuild`
|
|
||||||
candidate #2: `prometheus::vec::MetricVecBuilder`
|
|
||||||
|
|||||||
@@ -2,14 +2,10 @@ error[E0599]: no method named `build` found for struct `OrchestraBuilder<Init<Du
|
|||||||
--> tests/ui/err-06-missing-subsystem.rs:59:4
|
--> tests/ui/err-06-missing-subsystem.rs:59:4
|
||||||
|
|
|
|
||||||
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
||||||
| -------------------------------------------------------------------------------- method `build` not found for this
|
| ---------------------------------------------------------------------------------- method `build` not found for this struct
|
||||||
...
|
...
|
||||||
59 | .build()
|
59 | .build()
|
||||||
| ^^^^^ method not found in `OrchestraBuilder<Init<DummySpawner>, Missing<_>, Init<f64>>`
|
| ^^^^^ method not found in `OrchestraBuilder<Init<DummySpawner>, Missing<_>, Init<f64>>`
|
||||||
|
|
|
|
||||||
= note: the method was found for
|
= note: the method was found for
|
||||||
- `OrchestraBuilder<Init<S>, Init<AwesomeSubSys>, Init<f64>>`
|
- `OrchestraBuilder<Init<S>, Init<AwesomeSubSys>, Init<f64>>`
|
||||||
= help: items from traits can only be used if the trait is implemented and in scope
|
|
||||||
= note: the following traits define an item `build`, perhaps you need to implement one of them:
|
|
||||||
candidate #1: `frame_support::traits::hooks::GenesisBuild`
|
|
||||||
candidate #2: `prometheus::vec::MetricVecBuilder`
|
|
||||||
|
|||||||
@@ -2,14 +2,10 @@ error[E0599]: no method named `build` found for struct `OrchestraBuilder<Missing
|
|||||||
--> tests/ui/err-07-missing-spawner.rs:59:4
|
--> tests/ui/err-07-missing-spawner.rs:59:4
|
||||||
|
|
|
|
||||||
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
||||||
| -------------------------------------------------------------------------------- method `build` not found for this
|
| ---------------------------------------------------------------------------------- method `build` not found for this struct
|
||||||
...
|
...
|
||||||
59 | .build()
|
59 | .build()
|
||||||
| ^^^^^ method not found in `OrchestraBuilder<Missing<_>, Init<AwesomeSubSys>, Init<f64>>`
|
| ^^^^^ method not found in `OrchestraBuilder<Missing<_>, Init<AwesomeSubSys>, Init<f64>>`
|
||||||
|
|
|
|
||||||
= note: the method was found for
|
= note: the method was found for
|
||||||
- `OrchestraBuilder<Init<S>, Init<AwesomeSubSys>, Init<f64>>`
|
- `OrchestraBuilder<Init<S>, Init<AwesomeSubSys>, Init<f64>>`
|
||||||
= help: items from traits can only be used if the trait is implemented and in scope
|
|
||||||
= note: the following traits define an item `build`, perhaps you need to implement one of them:
|
|
||||||
candidate #1: `frame_support::traits::hooks::GenesisBuild`
|
|
||||||
candidate #2: `prometheus::vec::MetricVecBuilder`
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ error[E0599]: no method named `sub0` found for struct `OrchestraBuilder<Missing<
|
|||||||
--> tests/ui/err-08-duplicate-subsystem.rs:57:4
|
--> tests/ui/err-08-duplicate-subsystem.rs:57:4
|
||||||
|
|
|
|
||||||
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
||||||
| -------------------------------------------------------------------------------- method `sub0` not found for this
|
| ---------------------------------------------------------------------------------- method `sub0` not found for this struct
|
||||||
...
|
...
|
||||||
57 | .sub0(AwesomeSubSys::default()) // Duplicate subsystem
|
57 | .sub0(AwesomeSubSys::default()) // Duplicate subsystem
|
||||||
| ^^^^-------------------------- help: remove the arguments
|
| ^^^^-------------------------- help: remove the arguments
|
||||||
|
|||||||
@@ -2,14 +2,10 @@ error[E0599]: no method named `build` found for struct `OrchestraBuilder<Init<Du
|
|||||||
--> tests/ui/err-09-uninit_generic_baggage.rs:59:4
|
--> tests/ui/err-09-uninit_generic_baggage.rs:59:4
|
||||||
|
|
|
|
||||||
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
22 | #[orchestra(signal=SigSigSig, error=OrchestraError, event=Event, gen=AllMessages)]
|
||||||
| -------------------------------------------------------------------------------- method `build` not found for this
|
| ---------------------------------------------------------------------------------- method `build` not found for this struct
|
||||||
...
|
...
|
||||||
59 | .build()
|
59 | .build()
|
||||||
| ^^^^^ method not found in `OrchestraBuilder<Init<DummySpawner>, Init<AwesomeSubSys>, Missing<_>>`
|
| ^^^^^ method not found in `OrchestraBuilder<Init<DummySpawner>, Init<AwesomeSubSys>, Missing<_>>`
|
||||||
|
|
|
|
||||||
= note: the method was found for
|
= note: the method was found for
|
||||||
- `OrchestraBuilder<Init<S>, Init<AwesomeSubSys>, Init<T>>`
|
- `OrchestraBuilder<Init<S>, Init<AwesomeSubSys>, Init<T>>`
|
||||||
= help: items from traits can only be used if the trait is implemented and in scope
|
|
||||||
= note: the following traits define an item `build`, perhaps you need to implement one of them:
|
|
||||||
candidate #1: `frame_support::traits::hooks::GenesisBuild`
|
|
||||||
candidate #2: `prometheus::vec::MetricVecBuilder`
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ use orchestra::*;
|
|||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct AwesomeSubSysA;
|
struct AwesomeSubSysA;
|
||||||
|
|
||||||
|
|
||||||
impl ::orchestra::Subsystem<OrchestraSubsystemContext<MsgA>, OrchestraError> for AwesomeSubSysA {
|
impl ::orchestra::Subsystem<OrchestraSubsystemContext<MsgA>, OrchestraError> for AwesomeSubSysA {
|
||||||
fn start(self, _ctx: OrchestraSubsystemContext<MsgA>) -> SpawnedSubsystem<OrchestraError> {
|
fn start(self, _ctx: OrchestraSubsystemContext<MsgA>) -> SpawnedSubsystem<OrchestraError> {
|
||||||
SpawnedSubsystem { name: "sub A", future: Box::pin(async move { Ok(()) }) }
|
SpawnedSubsystem { name: "sub A", future: Box::pin(async move { Ok(()) }) }
|
||||||
@@ -41,7 +40,7 @@ impl Spawner for DummySpawner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct AwesomeSubSysB;
|
pub struct AwesomeSubSysB;
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct SigSigSig;
|
pub struct SigSigSig;
|
||||||
|
|||||||
@@ -36,4 +36,4 @@ export TRYBUILD=overwrite
|
|||||||
# Run all the relevant UI tests
|
# Run all the relevant UI tests
|
||||||
#
|
#
|
||||||
# Any new UI tests in different crates need to be added here as well.
|
# Any new UI tests in different crates need to be added here as well.
|
||||||
rustup run $RUST_VERSION cargo test -p polkadot-overseer-gen ui
|
rustup run $RUST_VERSION cargo test -p orchestra ui
|
||||||
|
|||||||
Reference in New Issue
Block a user