Skip to content

Commit cd63276

Browse files
alvicsamseadandabkchrggwpez
authored
[ci] Update rust to 1.74 (#2545)
cc paritytech/ci_cd#900 --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Dónal Murray <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: command-bot <>
1 parent 833478f commit cd63276

27 files changed

+229
-79
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ workflow:
2121
- if: $CI_COMMIT_BRANCH
2222

2323
variables:
24-
CI_IMAGE: !reference [.ci-unified, variables, CI_IMAGE]
24+
CI_IMAGE: "docker.io/paritytech/ci-unified:bullseye-1.74.0-2023-11-01-v20231204"
2525
# BUILDAH_IMAGE is defined in group variables
2626
BUILDAH_COMMAND: "buildah --storage-driver overlay2"
2727
RELENG_SCRIPTS_BRANCH: "master"

polkadot/node/core/prospective-parachains/src/tests.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,9 @@ fn test_harness<T: Future<Output = VirtualOverseer>>(
101101

102102
let mut view = View::new();
103103
let subsystem = async move {
104-
loop {
105-
match run_iteration(&mut context, &mut view, &Metrics(None)).await {
106-
Ok(()) => break,
107-
Err(e) => panic!("{:?}", e),
108-
}
104+
match run_iteration(&mut context, &mut view, &Metrics(None)).await {
105+
Ok(()) => {},
106+
Err(e) => panic!("{:?}", e),
109107
}
110108

111109
view

substrate/bin/node/cli/tests/websocket_server.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ impl WsServer {
205205
Ok(soketto::Data::Text(len)) => String::from_utf8(buf[..len].to_vec())
206206
.map(Message::Text)
207207
.map_err(|err| Box::new(err) as Box<_>),
208-
Ok(soketto::Data::Binary(len)) => Ok(buf[..len].to_vec())
209-
.map(Message::Binary),
208+
Ok(soketto::Data::Binary(len)) => Ok(Message::Binary(buf[..len].to_vec())),
210209
Err(err) => Err(Box::new(err) as Box<_>),
211210
};
212211
Some((ret, (receiver, buf)))

substrate/client/consensus/babe/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ async fn run_one_test(mutator: impl Fn(&mut TestHeader, Stage) + Send + Sync + '
411411
let mut net = net.lock();
412412
net.poll(cx);
413413
for p in net.peers() {
414-
for (h, e) in p.failed_verifications() {
414+
if let Some((h, e)) = p.failed_verifications().into_iter().next() {
415415
panic!("Verification failed for {:?}: {}", h, e);
416416
}
417417
}

substrate/frame/support/test/tests/construct_runtime_ui/deprecated_where_block.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ error: use of deprecated constant `WhereSection::_w`:
1717
| |_^
1818
|
1919
= note: `-D deprecated` implied by `-D warnings`
20+
= help: to override `-D warnings` add `#[allow(deprecated)]`
2021
= 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)
2122

2223
error[E0277]: the trait bound `Runtime: Config` is not satisfied

substrate/frame/support/test/tests/construct_runtime_ui/number_of_pallets_exceeds_tuple_size.stderr

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,34 @@ error[E0412]: cannot find type `RuntimeOrigin` in this scope
3131
--> tests/construct_runtime_ui/number_of_pallets_exceeds_tuple_size.rs:42:23
3232
|
3333
42 | type RuntimeOrigin = RuntimeOrigin;
34-
| ^^^^^^^^^^^^^ help: you might have meant to use the associated type: `Self::RuntimeOrigin`
34+
| ^^^^^^^^^^^^^
35+
|
36+
help: you might have meant to use the associated type
37+
|
38+
42 | type RuntimeOrigin = Self::RuntimeOrigin;
39+
| ++++++
3540

3641
error[E0412]: cannot find type `RuntimeCall` in this scope
3742
--> tests/construct_runtime_ui/number_of_pallets_exceeds_tuple_size.rs:44:21
3843
|
3944
44 | type RuntimeCall = RuntimeCall;
40-
| ^^^^^^^^^^^ help: you might have meant to use the associated type: `Self::RuntimeCall`
45+
| ^^^^^^^^^^^
46+
|
47+
help: you might have meant to use the associated type
48+
|
49+
44 | type RuntimeCall = Self::RuntimeCall;
50+
| ++++++
4151

4252
error[E0412]: cannot find type `RuntimeEvent` in this scope
4353
--> tests/construct_runtime_ui/number_of_pallets_exceeds_tuple_size.rs:50:22
4454
|
4555
50 | type RuntimeEvent = RuntimeEvent;
46-
| ^^^^^^^^^^^^ help: you might have meant to use the associated type: `Self::RuntimeEvent`
56+
| ^^^^^^^^^^^^
57+
|
58+
help: you might have meant to use the associated type
59+
|
60+
50 | type RuntimeEvent = Self::RuntimeEvent;
61+
| ++++++
4762

4863
error[E0412]: cannot find type `PalletInfo` in this scope
4964
--> tests/construct_runtime_ui/number_of_pallets_exceeds_tuple_size.rs:56:20
@@ -54,7 +69,7 @@ error[E0412]: cannot find type `PalletInfo` in this scope
5469
help: you might have meant to use the associated type
5570
|
5671
56 | type PalletInfo = Self::PalletInfo;
57-
| ~~~~~~~~~~~~~~~~
72+
| ++++++
5873
help: consider importing one of these items
5974
|
6075
18 + use frame_benchmarking::__private::traits::PalletInfo;

substrate/frame/support/test/tests/derive_impl_ui/inject_runtime_type_fails_when_type_not_in_scope.stderr

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ error[E0412]: cannot find type `RuntimeCall` in this scope
22
--> tests/derive_impl_ui/inject_runtime_type_fails_when_type_not_in_scope.rs:30:10
33
|
44
30 | type RuntimeCall = ();
5-
| ^^^^^^^^^^^ help: you might have meant to use the associated type: `Self::RuntimeCall`
5+
| ^^^^^^^^^^^
66
...
77
35 | #[derive_impl(Pallet)] // Injects type RuntimeCall = RuntimeCall;
88
| ---------------------- in this macro invocation
99
|
1010
= note: this error originates in the macro `Pallet` which comes from the expansion of the macro `frame_support::macro_magic::forward_tokens_verbatim` (in Nightly builds, run with -Z macro-backtrace for more info)
11+
help: you might have meant to use the associated type
12+
|
13+
30 | type Self::RuntimeCall = ();
14+
| ++++++

substrate/frame/support/test/tests/pallet_ui/call_argument_invalid_bound.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
1010
| ^
1111
|
1212
= note: `-D deprecated` implied by `-D warnings`
13+
= help: to override `-D warnings` add `#[allow(deprecated)]`
1314

1415
error[E0277]: `<T as pallet::Config>::Bar` doesn't implement `std::fmt::Debug`
1516
--> tests/pallet_ui/call_argument_invalid_bound.rs:38:36

substrate/frame/support/test/tests/pallet_ui/call_argument_invalid_bound_2.stderr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
1010
| ^
1111
|
1212
= note: `-D deprecated` implied by `-D warnings`
13+
= help: to override `-D warnings` add `#[allow(deprecated)]`
1314

1415
error[E0277]: `<T as pallet::Config>::Bar` doesn't implement `std::fmt::Debug`
1516
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:38:36
@@ -45,9 +46,9 @@ error[E0277]: the trait bound `<T as pallet::Config>::Bar: WrapperTypeEncode` is
4546
= note: required for `<T as pallet::Config>::Bar` to implement `Encode`
4647

4748
error[E0277]: the trait bound `<T as pallet::Config>::Bar: WrapperTypeDecode` is not satisfied
48-
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:34:12
49+
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:38:42
4950
|
50-
34 | #[pallet::call]
51-
| ^^^^ the trait `WrapperTypeDecode` is not implemented for `<T as pallet::Config>::Bar`
51+
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
52+
| ^^^^^^ the trait `WrapperTypeDecode` is not implemented for `<T as pallet::Config>::Bar`
5253
|
5354
= note: required for `<T as pallet::Config>::Bar` to implement `Decode`

substrate/frame/support/test/tests/pallet_ui/call_argument_invalid_bound_3.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
1010
| ^
1111
|
1212
= note: `-D deprecated` implied by `-D warnings`
13+
= help: to override `-D warnings` add `#[allow(deprecated)]`
1314

1415
error[E0277]: `Bar` doesn't implement `std::fmt::Debug`
1516
--> tests/pallet_ui/call_argument_invalid_bound_3.rs:40:36

0 commit comments

Comments
 (0)