Closed Sovenok-Hacker closed 3 weeks ago
Uh huh. Does it have a different rlimit type in libc?
I think you should be able to work around this by changing those two AtomicU64
to AtomicU32
.
This is similar to #431; I'll think of some way to fix it.
Could you check if f203c8729a8535f6a317df5a35dc01306be2e45c fixes it?
Should be fixed by that commit.
u64
, foundu32
note: method defined here --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/sync/atomic.rs:3151:1 = note: this error originates in the macro
atomic_int
(in Nightly builds, run with -Z macro-backtrace for more info) help: you can convert au32
to au64
| 33 | ORIGINAL_NOFILE_RLIMIT_CUR.store(rlim.rlim_cur.into(), Ordering::SeqCst); | +++++++u64
, foundu32
note: method defined here --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/sync/atomic.rs:3151:1 = note: this error originates in the macro
atomic_int
(in Nightly builds, run with -Z macro-backtrace for more info) help: you can convert au32
to au64
| 34 | ORIGINAL_NOFILE_RLIMIT_MAX.store(rlim.rlim_max.into(), Ordering::SeqCst); | +++++++u32
, foundu64
help: you can convert a
u64
to au32
and panic if the converted value doesn't fit | 58 | let rlim = rlimit { rlim_cur: rlim_cur.try_into().unwrap(), rlim_max }; | +++++++++ ++++++++++++++++++++u32
, foundu64
help: you can convert a
u64
to au32
and panic if the converted value doesn't fit | 58 | let rlim = rlimit { rlim_cur, rlim_max: rlim_max.try_into().unwrap() }; | +++++++++ ++++++++++++++++++++For more information about this error, try
rustc --explain E0308
. error: could not compileniri
(lib) due to 4 previous errors 10:35:24 owl@eeepc niri ±|main|→`I know basic Rust, trying to fix it myself.
System Information