Skip to content

Commit 3e5286a

Browse files
authored
Unrolled build for rust-lang#129907
Rollup merge of rust-lang#129907 - saethlin:solid-io-error, r=WaffleLapkin Fix compile error in solid's remove_dir_all Before this PR, `x check library/std --target=aarch64-kmc-solid_asp3` will fail with: ``` error[E0382]: use of partially moved value: `result` --> std/src/sys/pal/solid/fs.rs:544:20 | 541 | if let Err(err) = result | --- value partially moved here ... 544 | return result; | ^^^^^^ value used here after partial move | = note: partial move occurs because value has type `io::error::Error`, which does not implement the `Copy` trait help: borrow this binding in the pattern to avoid moving the value | 541 | if let Err(ref err) = result | +++ ``` cc `@kawadakk` I think this will clear up https://solid-rs.github.io/toolstate/ :)
2 parents bd53aa3 + 8be9fed commit 3e5286a

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/pal/solid

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/solid/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ pub fn remove_dir_all(path: &Path) -> io::Result<()> {
538538
}
539539
};
540540
// ignore internal NotFound errors
541-
if let Err(err) = result
541+
if let Err(err) = &result
542542
&& err.kind() != io::ErrorKind::NotFound
543543
{
544544
return result;

0 commit comments

Comments
 (0)