我尝试在 Loongnix 系统上在 rustix
1.x 分支运行 cargo test
, 结果出现如下报错:
error[E0432]: unresolved import linux_raw_sys::general::open_how
--> /home/loongson/.cargo/registry/src/crates.loongnix.cn-7478b521915992e1/rustix-0.38.18/src/backend/libc/fs/syscalls.rs:1674:9
|
1674 | use linux_raw_sys::general::open_how;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no open_how
in general
|
help: consider importing one of these items instead
|
1674 | use crate::backend::c::open_how;
| ~~~~~~~~~~~~~~~~~~~~~~
1674 | use libc::open_how;
| ~~~~~~~~~
For more information about this error, try rustc --explain E0432