mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Test fixes and rebase conflicts
This commit is contained in:
@@ -122,6 +122,7 @@
|
||||
#![feature(unsafe_destructor)]
|
||||
#![feature(unsafe_no_drop_flag)]
|
||||
#![feature(macro_reexport)]
|
||||
#![feature(hash)]
|
||||
#![cfg_attr(test, feature(test, rustc_private, env))]
|
||||
|
||||
// Don't link to std. We are std.
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
use boxed;
|
||||
use cmp;
|
||||
use io;
|
||||
use mem;
|
||||
use ptr;
|
||||
use libc;
|
||||
use libc::types::os::arch::extra::{LPSECURITY_ATTRIBUTES, SIZE_T, BOOL,
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
use libc::types::os::arch::extra::{DWORD, LPVOID, BOOL};
|
||||
|
||||
use boxed;
|
||||
use mem;
|
||||
use ptr;
|
||||
use rt;
|
||||
use sys_common::mutex::{MUTEX_INIT, Mutex};
|
||||
|
||||
@@ -330,7 +330,6 @@ pub fn destroyed(&'static self) -> bool { self.state() == State::Destroyed }
|
||||
mod imp {
|
||||
use prelude::v1::*;
|
||||
|
||||
use alloc::boxed;
|
||||
use cell::UnsafeCell;
|
||||
use intrinsics;
|
||||
use ptr;
|
||||
@@ -389,6 +388,7 @@ unsafe fn register_dtor(&self) {
|
||||
// Due to rust-lang/rust#18804, make sure this is not generic!
|
||||
#[cfg(target_os = "linux")]
|
||||
unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern fn(*mut u8)) {
|
||||
use boxed;
|
||||
use mem;
|
||||
use libc;
|
||||
use sys_common::thread_local as os;
|
||||
|
||||
Reference in New Issue
Block a user