Skip to content
/ rust Public
forked from rust-lang/rust

Commit 351445a

Browse files
authored
Rollup merge of rust-lang#115124 - solid-rs:patch/kmc-solid/import-poison-error-in-os, r=cuviper
kmc-solid: Import `std::sync::PoisonError` in `std::sys::solid::os` Follow-up to rust-lang#114968. Fixes a missing import in [`*-kmc-solid_*`](https://doc.rust-lang.org/nightly/rustc/platform-support/kmc-solid.html) Tier 3 targets. ``` error[E0433]: failed to resolve: use of undeclared type `PoisonError` C:\Users\xxxxx\.rustup\toolchains\nightly-2023-08-23-x86_64-pc-windows-gnu\lib\rustlib\src\rust\library\std\src\sys\solid\os.rs(85,36) | 85 | ENV_LOCK.read().unwrap_or_else(PoisonError::into_inner) | ^^^^^^^^^^^ use of undeclared type `PoisonError` | ```
2 parents 4369e24 + 65217a7 commit 351445a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Diff for: library/std/src/sys/solid/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::os::{
88
solid::ffi::{OsStrExt, OsStringExt},
99
};
1010
use crate::path::{self, PathBuf};
11-
use crate::sync::RwLock;
11+
use crate::sync::{PoisonError, RwLock};
1212
use crate::sys::common::small_c_string::run_with_cstr;
1313
use crate::vec;
1414

0 commit comments

Comments
 (0)