rollup merge of #23919: alexcrichton/stabilize-io-error
Conflicts: src/libstd/fs/tempdir.rs src/libstd/io/error.rs
This commit is contained in:
commit
50b3ecf3bc
22 changed files with 108 additions and 72 deletions
|
@ -576,8 +576,7 @@ pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
|
|||
let to = to.as_ref();
|
||||
if !from.is_file() {
|
||||
return Err(Error::new(ErrorKind::InvalidInput,
|
||||
"the source path is not an existing file",
|
||||
None))
|
||||
"the source path is not an existing file"))
|
||||
}
|
||||
|
||||
let mut reader = try!(File::open(from));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue