Closed as not planned
Description
Code:
use std::fs;
fn main() {
fs::copy("foo", "bar").unwrap();
}
If I ensure "foo" exists and run the above program under valgrind on Linux, I get:
==75959== Warning: invalid file descriptor -1 in syscall copy_file_range(fd_in)()
The docs say copy_file_range
may be used on Linux. Maybe it is used incorrectly? The file does get copied though.
This warning appears when the program is built with stable (1.76.0) and nightly.