-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Description
Does anyone else hit these issues when building sd
on Linux?
$ lsb_release -sir
No LSB modules are available.
Ubuntu
24.04
$ rustc --version
rustc 1.86.0 (05f9846f8 2025-03-31)
...
...
Compiling regex v1.10.2
Compiling clap v4.4.6
Compiling sd v1.0.0 (/home/mjm/rust2/sd)
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src/main.rs:1:1
|
1 | #![feature(try_blocks)]
| ^^^^^^^^^^^^^^^^^^^^^^^
warning[E0133]: call to unsafe function `memmap2::Mmap::map` is unsafe and requires unsafe block
--> src/input.rs:37:8
|
37 | Ok(Mmap::map(&File::open(path)?)?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
= note: consult the function's documentation for information on how to avoid undefined behavior
note: an unsafe function restricts its caller, but its body is safe by default
--> src/input.rs:36:1
|
36 | pub(crate) unsafe fn make_mmap(path: &PathBuf) -> Result<Mmap> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
Some errors have detailed explanations: E0133, E0554.
For more information about an error, try `rustc --explain E0133`.
warning: `sd` (bin "sd") generated 1 warning
templarundead and danie-dejager
Metadata
Metadata
Assignees
Labels
No labels