Commit 5afedf5
Update to Rust stable 1.84.1 (#7625)
Ref paritytech/ci_cd#1107
We mainly need that so that we can finally compile the `pallet_revive`
fixtures on stable. I did my best to keep the commits focused on one
thing to make review easier.
All the changes are needed because rustc introduced more warnings or is
more strict about existing ones. Most of the stuff could just be fixed
and the commits should be pretty self explanatory. However, there are a
few this that are notable:
A lot of runtimes to write `impl` blocks inside functions. This makes
sense to reduce the amount of conditional compilation. I guess I could
have moved them into a module instead. But I think allowing it here
makes sense to avoid the code churn.
The FRAME macros emit code that references various features like `std`,
`runtime-benchmarks` or `try-runtime`. If a create that uses those
macros does not have those features we get this warning. Those were
mostly when defining a `mock` runtime. I opted for silencing the warning
in this case rather than adding not needed features.
For the benchmarking ui tests I opted for adding the `runtime-benchmark`
feature to the `Cargo.toml`.
I am bumping the `trybuild` version and regenerating the ui tests. The
old version seems to be incompatible. This requires us to pass
`deny_warnings` in `CARGO_ENCODED_RUSTFLAGS` as `RUSTFLAGS` is ignored
in the new version.
This is no longer needed since the latest stable will compile them fine
using the `RUSTC_BOOTSTRAP=1`.
---------
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent 8d560d7 commit 5afedf5
File tree
105 files changed
+406
-173
lines changed- .github
- bridges
- modules/grandpa/src
- primitives/test-utils/src
- relays/lib-substrate-relay/src/messages
- cumulus
- parachains/runtimes
- assets
- asset-hub-rococo/src
- asset-hub-westend/src
- bridge-hubs
- bridge-hub-rococo/src
- bridge-hub-westend/src
- collectives/collectives-westend/src
- contracts/contracts-rococo/src
- coretime
- coretime-rococo/src
- coretime-westend/src
- glutton/glutton-westend/src
- people
- people-rococo/src
- people-westend/src
- testing/penpal/src
- polkadot-omni-node/lib/src/fake_runtime_api
- docs
- contributor
- sdk/src
- polkadot
- node
- network/statement-distribution/src/v2/tests
- overseer/src
- runtime
- common
- parachains
- src/coretime
- rococo/src
- westend/src
- xcm
- docs/src
- xcm-simulator
- example/src
- fuzzer/src
- prdoc
- substrate
- bin/node/runtime/src
- client
- allocator/src
- merkle-mountain-range/src
- network/types/src
- multiaddr
- rpc-spec-v2/src/chain_head
- frame
- babe/src
- benchmarking/src
- contracts/fixtures/contracts
- election-provider-multi-phase/test-staking-e2e/src
- lottery
- migrations/src
- node-authorization/src
- nomination-pools/test-delegate-stake/src
- parameters/src/tests
- revive/fixtures/build
- scored-pool/src
- society
- statement/src
- support
- src/traits
- test
- tests
- benchmark_ui
- pass
- construct_runtime_ui
- pallet_ui
- pass
- transaction-storage/src
- utility/src
- primitives
- api/test/tests
- ui
- core/src
- runtime-interface
- test-wasm/src
- tests/ui
- runtime/src
- state-machine/src
- transaction-storage-proof/src
- trie/src
- templates
- parachain/runtime/src
- solochain/runtime/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
105 files changed
+406
-173
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
1401 | | - | |
| 1401 | + | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | 1404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
798 | 795 | | |
799 | 796 | | |
800 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
823 | 824 | | |
824 | 825 | | |
825 | 826 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1685 | 1685 | | |
1686 | 1686 | | |
1687 | 1687 | | |
| 1688 | + | |
1688 | 1689 | | |
1689 | 1690 | | |
1690 | 1691 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1886 | 1886 | | |
1887 | 1887 | | |
1888 | 1888 | | |
| 1889 | + | |
1889 | 1890 | | |
1890 | 1891 | | |
1891 | 1892 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
| 1091 | + | |
1091 | 1092 | | |
1092 | 1093 | | |
1093 | 1094 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
| 1007 | + | |
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
| |||
0 commit comments