rcore-os / rCore-Tutorial-v3

Let's write an OS which can run on RISC-V in Rust from scratch!
https://rcore-os.github.io/rCore-Tutorial-Book-v3/index.html
GNU General Public License v3.0
1.58k stars 452 forks source link

Issues when bumping to at least nightly-2024-02-28 #145

Closed wyfcyx closed 3 months ago

wyfcyx commented 6 months ago

error:

error: the item `log` is imported redundantly
  --> src/logging.rs:7:11
   |
7  | use log::{self, Level, LevelFilter, Log, Metadata, Record};
   |           ^^^^ the item `log` is already defined here
   |
note: the lint level is defined here
  --> src/main.rs:11:9
   |
11 | #![deny(warnings)]
   |         ^^^^^^^^
   = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]`

error: could not compile `os` (bin "os") due to 1 previous error

warning:

warning: `/mnt/c/wsl/rCore-Tutorial-v3/os/.cargo/config` is deprecated in favor of `config.toml`
LliminM commented 5 months ago

所以要怎么改正这个错误

wyfcyx commented 3 months ago

此提交已成功完成Rust版本升级,故关闭此issue。