diff options
Diffstat (limited to 'src/libstd/dynamic_lib.rs')
| -rw-r--r-- | src/libstd/dynamic_lib.rs | 13 | 
1 files changed, 5 insertions, 8 deletions
diff --git a/src/libstd/dynamic_lib.rs b/src/libstd/dynamic_lib.rs index d06b027adf6..a42809127bf 100644 --- a/src/libstd/dynamic_lib.rs +++ b/src/libstd/dynamic_lib.rs @@ -272,10 +272,6 @@ mod dl { use ptr; use result::Result; use result::Result::{Ok, Err}; - #[cfg(stage0)] - use slice::SliceExt; - #[cfg(stage0)] - use str::StrExt; use str; use string::String; use vec::Vec; @@ -294,10 +290,11 @@ mod dl { let err = os::errno(); if err as libc::c_int == ERROR_CALL_NOT_IMPLEMENTED { use_thread_mode = false; - // SetThreadErrorMode not found. use fallback solution: SetErrorMode() - // Note that SetErrorMode is process-wide so this can cause race condition! - // However, since even Windows APIs do not care of such problem (#20650), - // we just assume SetErrorMode race is not a great deal. + // SetThreadErrorMode not found. use fallback solution: + // SetErrorMode() Note that SetErrorMode is process-wide so + // this can cause race condition! However, since even + // Windows APIs do not care of such problem (#20650), we + // just assume SetErrorMode race is not a great deal. prev_error_mode = SetErrorMode(new_error_mode); } }  | 
