diff options
| author | Michael Howell <michael@notriddle.com> | 2022-10-23 14:48:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-23 14:48:15 -0700 |
| commit | 23d1b057260c9a3c3520d97922589f5013988de0 (patch) | |
| tree | fa81972559efa47fdf61eabac2b00b5ac3acf0cb /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff | |
| parent | 214fa9fb9ce2cb5f40c562637ea992adaaab0340 (diff) | |
| parent | 76bec177bca25a35aa55a364bb8d2d66e0d5d45e (diff) | |
| download | rust-23d1b057260c9a3c3520d97922589f5013988de0.tar.gz rust-23d1b057260c9a3c3520d97922589f5013988de0.zip | |
Rollup merge of #103005 - solid-rs:patch/kmc-solid/readdir-terminator, r=m-ou-se
kmc-solid: Handle errors returned by `SOLID_FS_ReadDir` Fixes the issue where the `std::fs::ReadDir` implementaton of the [`*-kmc-solid_*`](https://doc.rust-lang.org/nightly/rustc/platform-support/kmc-solid.html) Tier 3 targets silently suppressed errors returned by the underlying `SOLID_FS_ReadDir` system function. The new implementation correctly handles all cases: - `SOLID_ERR_NOTFOUND` indicates the end of directory stream. - `SOLID_ERR_OK` + non-empty `d_name` indicates success. - Some old filesystem drivers may return `SOLID_ERR_OK` + empty `d_name` to indicate the end of directory stream. - Any other negative values (per ITRON convention) represent an error.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
