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

Bump ci-linux to rust 1.69 #14060

Merged
merged 4 commits into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ rustflags = [
"-Aclippy::needless_option_as_deref", # false positives
"-Aclippy::derivable_impls", # false positives
"-Aclippy::stable_sort_primitive", # prefer stable sort
"-Aclippy::extra-unused-type-parameters" # stylistic
]
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ variables:
CARGO_INCREMENTAL: 0
DOCKER_OS: "debian:bullseye"
ARCH: "x86_64"
CI_IMAGE: "paritytech/ci-linux:production"
CI_IMAGE: "paritytech/ci-linux@sha256:f6cdc1e289e40f3eb1f93efb11f961d4f0e51f4c2adf80b31300ab5b35ef1386" # staging 2023-05-02
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.29"
BUILDAH_COMMAND: "buildah --storage-driver overlay2"
RELENG_SCRIPTS_BRANCH: "master"
Expand Down
2 changes: 1 addition & 1 deletion client/network/sync/src/block_request_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct SeenRequestsKey<B: BlockT> {
support_multiple_justifications: bool,
}

#[allow(clippy::derive_hash_xor_eq)]
#[allow(clippy::derived_hash_with_manual_eq)]
impl<B: BlockT> Hash for SeenRequestsKey<B> {
fn hash<H: Hasher>(&self, state: &mut H) {
self.peer.hash(state);
Expand Down
2 changes: 1 addition & 1 deletion client/network/sync/src/state_request_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct SeenRequestsKey<B: BlockT> {
start: Vec<Vec<u8>>,
}

#[allow(clippy::derive_hash_xor_eq)]
#[allow(clippy::derived_hash_with_manual_eq)]
impl<B: BlockT> Hash for SeenRequestsKey<B> {
fn hash<H: Hasher>(&self, state: &mut H) {
self.peer.hash(state);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error[E0599]: no variant or associated item named `new_call_variant_thing` found for enum `Call` in the current scope
error[E0599]: no variant or associated item named `new_call_variant_thing` found for enum `frame_support_test::Call` in the current scope
--> tests/benchmark_ui/invalid_origin.rs:6:1
|
6 | #[benchmarks]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ error: `Pallet` does not have #[pallet::inherent] defined, perhaps you should re
|
= note: this error originates in the macro `pallet::__substrate_inherent_check::is_inherent_part_defined` which comes from the expansion of the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `create_inherent` found for struct `Pallet` in the current scope
error[E0599]: no function or associated item named `create_inherent` found for struct `pallet::Pallet` in the current scope
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
11 | pub struct Pallet<T>(_);
| -------------------- function or associated item `create_inherent` not found for this struct
...
49 | / construct_runtime! {
49 | construct_runtime! {
| _^
50 | | pub struct Runtime where
51 | | Block = Block,
52 | | NodeBlock = Block,
Expand All @@ -35,13 +36,14 @@ error[E0599]: no function or associated item named `create_inherent` found for s
candidate #1: `ProvideInherent`
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `is_inherent` found for struct `Pallet` in the current scope
error[E0599]: no function or associated item named `is_inherent` found for struct `pallet::Pallet` in the current scope
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
11 | pub struct Pallet<T>(_);
| -------------------- function or associated item `is_inherent` not found for this struct
...
49 | / construct_runtime! {
49 | construct_runtime! {
| _^
50 | | pub struct Runtime where
51 | | Block = Block,
52 | | NodeBlock = Block,
Expand All @@ -55,13 +57,14 @@ error[E0599]: no function or associated item named `is_inherent` found for struc
candidate #1: `ProvideInherent`
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `check_inherent` found for struct `Pallet` in the current scope
error[E0599]: no function or associated item named `check_inherent` found for struct `pallet::Pallet` in the current scope
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
11 | pub struct Pallet<T>(_);
| -------------------- function or associated item `check_inherent` not found for this struct
...
49 | / construct_runtime! {
49 | construct_runtime! {
| _^
50 | | pub struct Runtime where
51 | | Block = Block,
52 | | NodeBlock = Block,
Expand All @@ -75,13 +78,14 @@ error[E0599]: no function or associated item named `check_inherent` found for st
candidate #1: `ProvideInherent`
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no associated item named `INHERENT_IDENTIFIER` found for struct `Pallet` in the current scope
error[E0599]: no associated item named `INHERENT_IDENTIFIER` found for struct `pallet::Pallet` in the current scope
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
11 | pub struct Pallet<T>(_);
| -------------------- associated item `INHERENT_IDENTIFIER` not found for this struct
...
49 | / construct_runtime! {
49 | construct_runtime! {
| _^
50 | | pub struct Runtime where
51 | | Block = Block,
52 | | NodeBlock = Block,
Expand All @@ -95,13 +99,14 @@ error[E0599]: no associated item named `INHERENT_IDENTIFIER` found for struct `P
candidate #1: `ProvideInherent`
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `is_inherent_required` found for struct `Pallet` in the current scope
error[E0599]: no function or associated item named `is_inherent_required` found for struct `pallet::Pallet` in the current scope
--> tests/construct_runtime_ui/undefined_inherent_part.rs:49:1
|
11 | pub struct Pallet<T>(_);
| -------------------- function or associated item `is_inherent_required` not found for this struct
...
49 | / construct_runtime! {
49 | construct_runtime! {
| _^
50 | | pub struct Runtime where
51 | | Block = Block,
52 | | NodeBlock = Block,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,28 @@ error: `Pallet` does not have #[pallet::validate_unsigned] defined, perhaps you
error[E0599]: no variant or associated item named `Pallet` found for enum `RuntimeCall` in the current scope
--> tests/construct_runtime_ui/undefined_validate_unsigned_part.rs:56:3
|
49 | / construct_runtime! {
50 | | pub struct Runtime where
51 | | Block = Block,
52 | | NodeBlock = Block,
... |
56 | | Pallet: pallet::{Pallet, ValidateUnsigned},
| | ^^^^^^ variant or associated item not found in `RuntimeCall`
57 | | }
58 | | }
| |_- variant or associated item `Pallet` not found for this enum
49 | // construct_runtime! {
50 | || pub struct Runtime where
51 | || Block = Block,
52 | || NodeBlock = Block,
... ||
55 | || System: frame_system::{Pallet, Call, Storage, Config, Event<T>},
56 | || Pallet: pallet::{Pallet, ValidateUnsigned},
| || -^^^^^^ variant or associated item not found in `RuntimeCall`
| ||________|
| |
57 | | }
58 | | }
| |__- variant or associated item `Pallet` not found for this enum

error[E0599]: no function or associated item named `pre_dispatch` found for struct `Pallet` in the current scope
error[E0599]: no function or associated item named `pre_dispatch` found for struct `pallet::Pallet` in the current scope
--> tests/construct_runtime_ui/undefined_validate_unsigned_part.rs:49:1
|
11 | pub struct Pallet<T>(_);
| -------------------- function or associated item `pre_dispatch` not found for this struct
...
49 | / construct_runtime! {
49 | construct_runtime! {
| _^
50 | | pub struct Runtime where
51 | | Block = Block,
52 | | NodeBlock = Block,
Expand All @@ -50,13 +54,14 @@ error[E0599]: no function or associated item named `pre_dispatch` found for stru
candidate #2: `ValidateUnsigned`
= note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `validate_unsigned` found for struct `Pallet` in the current scope
error[E0599]: no function or associated item named `validate_unsigned` found for struct `pallet::Pallet` in the current scope
--> tests/construct_runtime_ui/undefined_validate_unsigned_part.rs:49:1
|
11 | pub struct Pallet<T>(_);
| -------------------- function or associated item `validate_unsigned` not found for this struct
...
49 | / construct_runtime! {
49 | construct_runtime! {
| _^
50 | | pub struct Runtime where
51 | | Block = Block,
52 | | NodeBlock = Block,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error[E0599]: no function or associated item named `foo` found for associated type `<T as Config>::WeightInfo` in the current scope
error[E0599]: no function or associated item named `foo` found for associated type `<T as parentheses::Config>::WeightInfo` in the current scope
--> tests/pallet_ui/call_weight_inherited_invalid4.rs:24:10
|
24 | pub fn foo(_: OriginFor<T>) -> DispatchResult {
| ^^^ function or associated item not found in `<T as Config>::WeightInfo`

error[E0599]: no function or associated item named `foo` found for associated type `<T as Config>::WeightInfo` in the current scope
error[E0599]: no function or associated item named `foo` found for associated type `<T as assign::Config>::WeightInfo` in the current scope
--> tests/pallet_ui/call_weight_inherited_invalid4.rs:45:10
|
45 | pub fn foo(_: OriginFor<T>) -> DispatchResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ note: required by a bound in `pallet::Config`
--> tests/pallet_ui/type_value_forgotten_where_clause.rs:8:51
|
7 | pub trait Config: frame_system::Config
| ------ required by a bound in this
| ------ required by a bound in this trait
8 | where <Self as frame_system::Config>::AccountId: From<u32>
| ^^^^^^^^^ required by this bound in `Config`
help: consider further restricting the associated type
Expand All @@ -26,7 +26,7 @@ note: required by a bound in `pallet::Config`
--> tests/pallet_ui/type_value_forgotten_where_clause.rs:8:51
|
7 | pub trait Config: frame_system::Config
| ------ required by a bound in this
| ------ required by a bound in this trait
8 | where <Self as frame_system::Config>::AccountId: From<u32>
| ^^^^^^^^^ required by this bound in `Config`
help: consider further restricting the associated type
Expand All @@ -44,7 +44,7 @@ note: required by a bound in `pallet::Config`
--> tests/pallet_ui/type_value_forgotten_where_clause.rs:8:51
|
7 | pub trait Config: frame_system::Config
| ------ required by a bound in this
| ------ required by a bound in this trait
8 | where <Self as frame_system::Config>::AccountId: From<u32>
| ^^^^^^^^^ required by this bound in `Config`
help: consider further restricting the associated type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error[E0053]: method `test` has an incompatible type for trait
19 | fn test(data: String) {}
| ^^^^^^
| |
| expected `u64`, found struct `String`
| expected `u64`, found `std::string::String`
| help: change the parameter type to match the trait: `u64`
|
note: type in trait
Expand All @@ -21,7 +21,7 @@ error[E0308]: mismatched types
17 | / sp_api::impl_runtime_apis! {
18 | | impl self::Api<Block> for Runtime {
19 | | fn test(data: String) {}
| | ^^^^ expected `u64`, found struct `String`
| | ^^^^ expected `u64`, found `String`
20 | | }
... |
32 | | }
Expand Down