Skip to content

Commit f561be3

Browse files
committed
Remove a riscv workaround.
Remove a riscv workaround, now that rust-lang/libc#2391 has landed.
1 parent 2f80b72 commit f561be3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/imp/libc/io/types.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,7 @@ pub enum Advice {
390390
#[cfg(any(target_os = "android", target_os = "linux"))]
391391
LinuxHwPoison = c::MADV_HWPOISON,
392392
/// `MADV_SOFT_OFFLINE`
393-
// TODO: Enable riscv once <https://github.com/rust-lang/libc/pull/2391> lands.
394-
#[cfg(all(
395-
not(target_arch = "riscv64"),
396-
any(target_os = "android", target_os = "linux")
397-
))]
393+
#[cfg(any(target_os = "android", target_os = "linux"))]
398394
LinuxSoftOffline = c::MADV_SOFT_OFFLINE,
399395
/// `MADV_MERGEABLE`
400396
#[cfg(any(target_os = "android", target_os = "linux"))]

0 commit comments

Comments
 (0)