about summary refs log tree commit diff
path: root/library/std/tests/env.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/tests/env.rs')
-rw-r--r--library/std/tests/env.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/std/tests/env.rs b/library/std/tests/env.rs
index 0e55ec648c9..b095c2dde62 100644
--- a/library/std/tests/env.rs
+++ b/library/std/tests/env.rs
@@ -1,6 +1,5 @@
 use std::env::*;
 use std::ffi::{OsStr, OsString};
-use std::path::PathBuf;
 
 use rand::distributions::Alphanumeric;
 use rand::{thread_rng, Rng};
@@ -79,9 +78,11 @@ fn test_env_set_var() {
 }
 
 #[test]
-#[cfg_attr(any(target_os = "emscripten", target_env = "sgx"), ignore)]
+#[cfg_attr(not(any(unix, windows)), ignore, allow(unused))]
 #[allow(deprecated)]
 fn env_home_dir() {
+    use std::path::PathBuf;
+
     fn var_to_os_string(var: Result<String, VarError>) -> Option<OsString> {
         match var {
             Ok(var) => Some(OsString::from(var)),