Register new snapshots

This commit is contained in:
Alex Crichton
2015-03-18 09:36:18 -07:00
parent 94a95067e0
commit fccf5a0005
56 changed files with 1059 additions and 4030 deletions

View File

@@ -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);
}
}