Skip to content

Compile error in recent nightly version #594

Description

@zhangxuan2011

In recent of Rust compiler (2026-07-09), if we compile this crate, it will report this error:

    Checking x86_64 v0.15.4
error[E0046]: not all trait items implemented, missing: `forward_overflowing`, `backward_overflowing`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.4/src/addr.rs:474:1
    |
474 | impl Step for VirtAddr {
    | ^^^^^^^^^^^^^^^^^^^^^^ missing `forward_overflowing`, `backward_overflowing` in implementation
    |
    = help: implement the missing item: `fn forward_overflowing(_: Self, _: usize) -> (Self, bool) { todo!() }`
    = help: implement the missing item: `fn backward_overflowing(_: Self, _: usize) -> (Self, bool) { todo!() }`

error[E0046]: not all trait items implemented, missing: `forward_overflowing`, `backward_overflowing`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.4/src/structures/paging/page.rs:306:1
    |
306 | impl<S: PageSize> Step for Page<S> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `forward_overflowing`, `backward_overflowing` in implementation
    |
    = help: implement the missing item: `fn forward_overflowing(_: Self, _: usize) -> (Self, bool) { todo!() }`
    = help: implement the missing item: `fn backward_overflowing(_: Self, _: usize) -> (Self, bool) { todo!() }`

error[E0046]: not all trait items implemented, missing: `forward_overflowing`, `backward_overflowing`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.4/src/structures/paging/page_table.rs:374:1
    |
374 | impl Step for PageTableIndex {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `forward_overflowing`, `backward_overflowing` in implementation
    |
    = help: implement the missing item: `fn forward_overflowing(_: Self, _: usize) -> (Self, bool) { todo!() }`
    = help: implement the missing item: `fn backward_overflowing(_: Self, _: usize) -> (Self, bool) { todo!() }`

Yes, a compile error. So that means i cannot compile this correctly in the latest compiler.

I checked the error, and looked up the official docs, the latest nightly added 2 required methods, which are called forward_overflowing and backward_overflowing, and current version doesn't adapt it.

Current worked version: 2026-07-07

That is critical. please fix this as quickly as possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions