diff options
| author | Aris Merchant <22333129+inquisitivecrystal@users.noreply.github.com> | 2021-07-05 20:28:10 -0700 |
|---|---|---|
| committer | inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com> | 2021-07-10 12:55:09 -0700 |
| commit | fd0cb0cdc21dd9c06025277d772108f8d42cb25f (patch) | |
| tree | e5329b18a1b83834e61fab30658b6cdeabb75bd0 /library/std/src/sys/unix/kernel_copy.rs | |
| parent | 5022c0638dfbb83e0b38ce90f79d0fd6a4d295d6 (diff) | |
| download | rust-fd0cb0cdc21dd9c06025277d772108f8d42cb25f.tar.gz rust-fd0cb0cdc21dd9c06025277d772108f8d42cb25f.zip | |
Change `weak!` and `linkat!` to macros 2.0
`weak!` is needed in a test in another module. With macros 1.0, importing `weak!` would require reordering module declarations in `std/src/lib.rs`, which is a bit too evil.
Diffstat (limited to 'library/std/src/sys/unix/kernel_copy.rs')
| -rw-r--r-- | library/std/src/sys/unix/kernel_copy.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/kernel_copy.rs b/library/std/src/sys/unix/kernel_copy.rs index 9687576bb6a..a6b43229ba6 100644 --- a/library/std/src/sys/unix/kernel_copy.rs +++ b/library/std/src/sys/unix/kernel_copy.rs @@ -61,6 +61,7 @@ use crate::process::{ChildStderr, ChildStdin, ChildStdout}; use crate::ptr; use crate::sync::atomic::{AtomicBool, AtomicU8, Ordering}; use crate::sys::cvt; +use crate::sys::weak::syscall; use libc::{EBADF, EINVAL, ENOSYS, EOPNOTSUPP, EOVERFLOW, EPERM, EXDEV}; #[cfg(test)] |
