[ci] Update rust in ci image (1.75 and 2024-01-22) (#3016)

cc https://github.com/paritytech/ci_cd/issues/926

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
Co-authored-by: Dónal Murray <donal.murray@parity.io>
Co-authored-by: Vladimir Istyufeev <vladimir@parity.io>
This commit is contained in:
Alexander Samusev
2024-01-31 00:17:44 +01:00
committed by GitHub
parent 5a6f6d33d3
commit 5b7f24fca1
22 changed files with 116 additions and 48 deletions
@@ -2,4 +2,4 @@ error[E0220]: associated type `Block` not found for `Self`
--> tests/pallet_ui/default_config_with_no_default_in_system.rs:25:31
|
25 | type MyGetParam2: Get<Self::Block>;
| ^^^^^ there is a similarly named associated type `Block` in the trait `frame_system::Config`
| ^^^^^ there is an associated type `Block` in the trait `frame_system::Config`
@@ -16,6 +16,7 @@
// limitations under the License.
#[frame_support::pallet]
#[allow(unused_imports)]
mod pallet {
#[pallet::config]
pub trait Config: frame_system::Config {}
@@ -32,5 +33,4 @@ mod pallet {
#[derive(scale_info::TypeInfo, codec::Encode, codec::Decode)]
enum MyError {}
fn main() {
}
fn main() {}
@@ -1,7 +1,7 @@
error[E0277]: the trait bound `MyError: PalletError` is not satisfied
--> tests/pallet_ui/error_does_not_derive_pallet_error.rs:28:15
--> tests/pallet_ui/error_does_not_derive_pallet_error.rs:29:15
|
28 | CustomError(crate::MyError),
29 | CustomError(crate::MyError),
| ^^^^^^^^^^^^^^ the trait `PalletError` is not implemented for `MyError`
|
= help: the following other types implement trait `PalletError`:
@@ -16,6 +16,7 @@
// limitations under the License.
#[frame_support::pallet]
#[allow(unused_imports)]
mod pallet {
use frame_support::pallet_prelude::{Hooks, IsType};
use frame_system::pallet_prelude::BlockNumberFor;
@@ -41,5 +42,4 @@ mod pallet {
}
}
fn main() {
}
fn main() {}
@@ -1,19 +1,19 @@
error[E0277]: the trait bound `<T as pallet::Config>::Bar: Clone` is not satisfied
--> tests/pallet_ui/event_field_not_member.rs:40:7
--> tests/pallet_ui/event_field_not_member.rs:41:7
|
40 | B { b: T::Bar },
41 | B { b: T::Bar },
| ^ the trait `Clone` is not implemented for `<T as pallet::Config>::Bar`
error[E0369]: binary operation `==` cannot be applied to type `&<T as pallet::Config>::Bar`
--> tests/pallet_ui/event_field_not_member.rs:40:7
--> tests/pallet_ui/event_field_not_member.rs:41:7
|
40 | B { b: T::Bar },
41 | B { b: T::Bar },
| ^
error[E0277]: `<T as pallet::Config>::Bar` doesn't implement `std::fmt::Debug`
--> tests/pallet_ui/event_field_not_member.rs:40:7
--> tests/pallet_ui/event_field_not_member.rs:41:7
|
40 | B { b: T::Bar },
41 | B { b: T::Bar },
| ^ `<T as pallet::Config>::Bar` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
|
= help: the trait `std::fmt::Debug` is not implemented for `<T as pallet::Config>::Bar`
@@ -19,6 +19,7 @@ use codec::{Decode, Encode};
use frame_support::PalletError;
#[frame_support::pallet]
#[allow(unused_imports)]
mod pallet {
#[pallet::config]
pub trait Config: frame_system::Config {}
@@ -34,25 +35,24 @@ mod pallet {
#[derive(Encode, Decode, PalletError, scale_info::TypeInfo)]
pub enum MyError {
Foo,
Bar,
Baz(NestedError),
Struct(MyStruct),
Wrapper(Wrapper),
Foo,
Bar,
Baz(NestedError),
Struct(MyStruct),
Wrapper(Wrapper),
}
#[derive(Encode, Decode, PalletError, scale_info::TypeInfo)]
pub enum NestedError {
Quux
Quux,
}
#[derive(Encode, Decode, PalletError, scale_info::TypeInfo)]
pub struct MyStruct {
field: u8,
field: u8,
}
#[derive(Encode, Decode, PalletError, scale_info::TypeInfo)]
pub struct Wrapper(bool);
fn main() {
}
fn main() {}
@@ -16,6 +16,7 @@
// limitations under the License.
#[frame_support::pallet]
#[allow(unused_imports)]
mod pallet {
use frame_support::pallet_prelude::{Hooks, IsType};
use frame_system::pallet_prelude::BlockNumberFor;
@@ -16,6 +16,7 @@
// limitations under the License.
#[frame_support::pallet]
#[allow(unused_imports)]
mod pallet {
use frame_support::pallet_prelude::*;
@@ -34,5 +35,4 @@ mod pallet {
type Foo<T: Config> = StorageValue<_, u8, ResultQuery<Error::NonExistentValue>>;
}
fn main() {
}
fn main() {}
@@ -1,15 +1,15 @@
error[E0107]: missing generics for enum `pallet::Error`
--> tests/pallet_ui/storage_result_query_missing_generics.rs:34:56
--> tests/pallet_ui/storage_result_query_missing_generics.rs:35:56
|
34 | type Foo<T: Config> = StorageValue<_, u8, ResultQuery<Error::NonExistentValue>>;
35 | type Foo<T: Config> = StorageValue<_, u8, ResultQuery<Error::NonExistentValue>>;
| ^^^^^ expected 1 generic argument
|
note: enum defined here, with 1 generic parameter: `T`
--> tests/pallet_ui/storage_result_query_missing_generics.rs:29:11
--> tests/pallet_ui/storage_result_query_missing_generics.rs:30:11
|
29 | pub enum Error<T> {
30 | pub enum Error<T> {
| ^^^^^ -
help: add missing generic argument
|
34 | type Foo<T: Config> = StorageValue<_, u8, ResultQuery<Error<T>::NonExistentValue>>;
35 | type Foo<T: Config> = StorageValue<_, u8, ResultQuery<Error<T>::NonExistentValue>>;
| +++