You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm up to having the test cases running, and everything is compiling, but every time I cargo run or cargo test and build through the bootloader runner, I get a warning about dead code in some sort of generated enum declaration or something that's not actually part of my own crate:
Compiling bootloader v0.9.28 (/home/loka/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bootloader-0.9.28)
warning: field `0` is never read
--> src/page_table.rs:20:13
|
20 | Mapping(MapToError<Size4KiB>),
| ------- ^^^^^^^^^^^^^^^^^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
20 | Mapping(()),
| ~~
warning: `bootloader` (bin "bootloader") generated 1 warning
I'd file an issue with the bootloader repo, but they're two breaking versions ahead of where this tutorial is, so I'm not sure they'll want to update the 0.9 series to fix this.
The exact versions of everything I'm using are as follows:
I've tried to set RUSTFLAGS in the .cargo/config.toml to allow unused, but that didn't have an effect. I've got no clue how to make this huge useless warning stop showing up.
The text was updated successfully, but these errors were encountered:
I'd file an issue with the bootloader repo, but they're two breaking versions ahead of where this tutorial is, so I'm not sure they'll want to update the 0.9 series to fix this.
I'm maintaining the bootloader crate and I'm trying to keep the v0.9 releases up-to-date until I'm done migrating this tutorial to v0.11. I opened a PR at rust-osdev/bootloader#436 to fix the warning.
I'm up to having the test cases running, and everything is compiling, but every time I
cargo run
orcargo test
and build through the bootloader runner, I get a warning about dead code in some sort of generated enum declaration or something that's not actually part of my own crate:I'd file an issue with the
bootloader
repo, but they're two breaking versions ahead of where this tutorial is, so I'm not sure they'll want to update the 0.9 series to fix this.The exact versions of everything I'm using are as follows:
I've tried to set RUSTFLAGS in the
.cargo/config.toml
to allow unused, but that didn't have an effect. I've got no clue how to make this huge useless warning stop showing up.The text was updated successfully, but these errors were encountered: