Skip to content

error[E0407]: method forward_overflowing is not a member of trait Step, method backward_overflowing is not a member of trait Step, etc #597

Description

@githubdex59

Not exactly sure how to write this, here goes.

Cargo output

   Compiling x86_64 v0.15.5
   Compiling uefi v0.39.0
error[E0407]: method `forward_overflowing` is not a member of trait `Step`
   --> /home/r3pr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.5/src/addr.rs:494:5
    |
494 | /     fn forward_overflowing(start: Self, count: usize) -> (Self, bool) {
495 | |         match Self::forward_checked(start, count) {
496 | |             Some(next) => (next, false),
497 | |             None => (start, true),
498 | |         }
499 | |     }
    | |_____^ not a member of trait `Step`

error[E0407]: method `backward_overflowing` is not a member of trait `Step`
   --> /home/r3pr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.5/src/addr.rs:506:5
    |
506 | /     fn backward_overflowing(start: Self, count: usize) -> (Self, bool) {
507 | |         match Self::backward_checked(start, count) {
508 | |             Some(next) => (next, false),
509 | |             None => (start, true),
510 | |         }
511 | |     }
    | |_____^ not a member of trait `Step`

error[E0407]: method `forward_overflowing` is not a member of trait `Step`
   --> /home/r3pr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.5/src/structures/paging/page.rs:330:5
    |
330 | /     fn forward_overflowing(start: Self, count: usize) -> (Self, bool) {
331 | |         match Self::forward_checked(start, count) {
332 | |             Some(next) => (next, false),
333 | |             None => (start, true),
334 | |         }
335 | |     }
    | |_____^ not a member of trait `Step`

error[E0407]: method `backward_overflowing` is not a member of trait `Step`
   --> /home/r3pr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.5/src/structures/paging/page.rs:341:5
    |
341 | /     fn backward_overflowing(start: Self, count: usize) -> (Self, bool) {
342 | |         match Self::backward_checked(start, count) {
343 | |             Some(next) => (next, false),
344 | |             None => (start, true),
345 | |         }
346 | |     }
    | |_____^ not a member of trait `Step`

error[E0407]: method `forward_overflowing` is not a member of trait `Step`
   --> /home/r3pr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.5/src/structures/paging/page_table.rs:397:5
    |
397 | /     fn forward_overflowing(start: Self, count: usize) -> (Self, bool) {
398 | |         match Self::forward_checked(start, count) {
399 | |             Some(next) => (next, false),
400 | |             None => (start, true),
401 | |         }
402 | |     }
    | |_____^ not a member of trait `Step`

error[E0407]: method `backward_overflowing` is not a member of trait `Step`
   --> /home/r3pr/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x86_64-0.15.5/src/structures/paging/page_table.rs:409:5
    |
409 | /     fn backward_overflowing(start: Self, count: usize) -> (Self, bool) {
410 | |         match Self::backward_checked(start, count) {
411 | |             Some(next) => (next, false),
412 | |             None => (start, true),
413 | |         }
414 | |     }
    | |_____^ not a member of trait `Step`

For more information about this error, try `rustc --explain E0407`.
error: could not compile `x86_64` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...

Minimal code to reproduce

src/main.rs

#![no_main]
#![no_std]
use uefi::{Status, entry};
#[entry]
fn main() -> Status {
    uefi::helpers::init().unwrap();
    loop {}
}

cargo.toml

[package]
name = "min"
version = "0.1.0"
edition = "2024"
[dependencies]
log = "0.4.33"
uefi = { version = "0.39.0", features = ["logger", "panic_handler"] }
x86_64 = "0.15.5"
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"

Maybe uefi and x86_64 are colliding? If you need any more information then please ask

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