]> git.lizzy.rs Git - rust.git/commitdiff
Fix libstd tests
authorAlex Crichton <alex@alexcrichton.com>
Fri, 12 Jun 2015 17:49:39 +0000 (10:49 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 18 Jun 2015 17:51:31 +0000 (10:51 -0700)
src/librustc_trans/lib.rs
src/librustc_typeck/lib.rs
src/libstd/lib.rs
src/libstd/sys/windows/thread_local.rs
src/libstd/thread/local.rs
src/test/run-pass/issue-13259-windows-tcb-trash.rs
src/test/run-pass/sync-send-iterators-in-libcore.rs
src/test/run-pass/x86stdcall2.rs

index 8ced85d336b74ccf9c83b6edda86f21d8edbead5..bb7e95cd4ae44d7eb4db5f05c0c62d4953a35286 100644 (file)
@@ -28,7 +28,6 @@
 #![feature(box_patterns)]
 #![feature(box_syntax)]
 #![feature(const_fn)]
-#![feature(fs)]
 #![feature(iter_cmp)]
 #![feature(iter_arith)]
 #![feature(libc)]
index 764910100360a62464c69f442b95aaf7347c604e..7519cd05195695fe2f2799c8919d112b0608d6cb 100644 (file)
@@ -75,6 +75,7 @@
 
 #![allow(non_camel_case_types)]
 
+#![feature(append)]
 #![feature(box_patterns)]
 #![feature(box_syntax)]
 #![feature(drain)]
index 251f962c5e35e07ee048b02de8782876e024ef47..e5242c5bf861ad03f7d63ad49b3360280fe6afa1 100644 (file)
 #![feature(alloc)]
 #![feature(allow_internal_unstable)]
 #![feature(associated_consts)]
+#![feature(borrow_state)]
 #![feature(box_raw)]
 #![feature(box_syntax)]
 #![feature(char_internals)]
 #![feature(slice_concat_ext)]
 #![feature(slice_position_elem)]
 #![feature(no_std)]
-#![feature(num_bits_bytes)]
 #![feature(oom)]
 #![feature(optin_builtin_traits)]
 #![feature(rand)]
 #![feature(vec_push_all)]
 #![feature(wrapping)]
 #![feature(zero_one)]
+#![cfg_attr(all(unix, not(target_os = "macos"), not(target_os = "ios")),
+            feature(num_bits_bytes))]
+#![cfg_attr(windows, feature(str_utf16))]
 #![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras))]
 #![cfg_attr(test, feature(test, rustc_private, float_consts))]
 
index a3d522d1757a97fa11d5280dc053b4e00c5ce947..5002de559884d0f52773fd9fa75f914e9a2b0e76 100644 (file)
@@ -12,7 +12,6 @@
 
 use libc::types::os::arch::extra::{DWORD, LPVOID, BOOL};
 
-use boxed;
 use ptr;
 use rt;
 use sys_common::mutex::Mutex;
@@ -143,7 +142,7 @@ unsafe fn init_dtors() {
         DTOR_LOCK.unlock();
     });
     if res.is_ok() {
-        DTORS = boxed::into_raw(dtors);
+        DTORS = Box::into_raw(dtors);
     } else {
         DTORS = 1 as *mut _;
     }
index 2c4b716cc6e94431c98e01abdaa7f4b40b3f7fa1..60563340d10210c372210ad6fae89836648b9ce4 100644 (file)
@@ -405,7 +405,6 @@ fn _tlv_atexit(dtor: unsafe extern fn(*mut u8),
 mod imp {
     use prelude::v1::*;
 
-    use alloc::boxed;
     use cell::{Cell, UnsafeCell};
     use marker;
     use ptr;
@@ -447,7 +446,7 @@ pub unsafe fn get(&'static self) -> Option<&'static UnsafeCell<Option<T>>> {
                 key: self,
                 value: UnsafeCell::new(None),
             };
-            let ptr = boxed::into_raw(ptr);
+            let ptr = Box::into_raw(ptr);
             self.os.set(ptr as *mut u8);
             Some(&(*ptr).value)
         }
index 9ebbddf5141b7209dc0b9852ba7101e6221ba977..2e03a9a7244202b118f00158df8a5dc464e6e06d 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// pretty-expanded FIXME #23616
-
 #![feature(libc, std_misc)]
 
 extern crate libc;
index 8dda2365ac704ce41ab9f698d60a938770748d1a..d76bf89d0539680f8178922e5f04ecaa8ab7e024 100644 (file)
 
 // pretty-expanded FIXME #23616
 
-#![allow(unused_mut)]
-#![feature(core)]
-#![feature(collections)]
-#![feature(step_by)]
+#![allow(warnings)]
 #![feature(iter_empty)]
 #![feature(iter_once)]
+#![feature(iter_unfold)]
+#![feature(range_inclusive)]
+#![feature(step_by)]
+#![feature(str_escape)]
 
 use std::iter::{empty, once, range_inclusive, repeat, Unfold};
->>>>>>> Fallout in tests and docs from feature renamings
 
 fn is_sync<T>(_: T) where T: Sync {}
 fn is_send<T>(_: T) where T: Send {}
index 62da9c9d14be220c8cb5f49cde38ecc62716dbc0..c9742b0645e1da9e3a65479df800f32004cacdb6 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// pretty-expanded FIXME #23616
-
 #![feature(std_misc)]
 
 pub type HANDLE = u32;