diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-02 22:35:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-02 22:35:23 +0200 |
| commit | d6298d37369aceecee89aa6f8ffe91535ba3d080 (patch) | |
| tree | 094ca18f8e94b6fc6c18f02382d066b246715f08 /compiler/rustc_codegen_llvm/src | |
| parent | b1b8e3ef0d51628559431e917cdf7ce3e1422701 (diff) | |
| parent | 8be9fed672e361a0e591d996a1c4fb96671c6d02 (diff) | |
| download | rust-d6298d37369aceecee89aa6f8ffe91535ba3d080.tar.gz rust-d6298d37369aceecee89aa6f8ffe91535ba3d080.zip | |
Rollup merge of #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/ :)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
