Skip to content

Bumping toolchain#5416

Merged
zajko merged 11 commits into
casper-network:devfrom
zajko:bumping_toolchain
Jun 10, 2026
Merged

Bumping toolchain#5416
zajko merged 11 commits into
casper-network:devfrom
zajko:bumping_toolchain

Conversation

@zajko

@zajko zajko commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
  • Bumped the following rust toolchain versions:
    • rust-toolchain.toml: 1.85.1 → 1.91.0
    • smart_contracts/rust-toolchain: nightly-2025-02-16 → nightly-2025-08-28
  • Applied some lint fixes where it made sense, put in lint exceptions in places where structural changes would make a big impact on the code.
  • Marked DeployCategory as deprecated.
  • Removed Signed structure as it was not used
  • removed rest_server/docs.rs as it was not used

@zajko zajko force-pushed the bumping_toolchain branch from eae6680 to 316b938 Compare June 8, 2026 11:52
@zajko zajko force-pushed the bumping_toolchain branch from 047c68b to 6c2768b Compare June 9, 2026 13:58
| Operator::ArrayAtomicRmwXchg { .. }
| Operator::ArrayAtomicRmwCmpxchg { .. }
| Operator::RefI31Shared => todo!("{operator:?}"),
_ => 1,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think any additional variants should be explicitly added, not wildcarded.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It actually is not needed, thanks for catching that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well... I need to backtrack - we need a wildcart, because the new wasmer version (actually "wasmparser") uses #[non_exhaustive] on the Operator enum, it didn't use that before. Still - it should be

_ => todo!("{operator:?}")

round_success_meter.current_round_len,
);
if current_round_index % ACCELERATION_PARAMETER == 0 {
if current_round_index.is_multiple_of(ACCELERATION_PARAMETER) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modulo is no longer idiomatic?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new clippy rules categorize that as "clippy::manual_is_multiple_of" lint violation.

@zajko zajko merged commit 40a35f3 into casper-network:dev Jun 10, 2026
3 of 5 checks passed
@zajko zajko deleted the bumping_toolchain branch June 10, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants