Skip to content

Commit

Permalink
Test fixes and rebase conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jan 21, 2015
1 parent 9c999c7 commit 4ffde08
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/liballoc/heap.rs
Expand Up @@ -280,7 +280,7 @@ mod imp {
if align <= MIN_ALIGN {
libc::malloc(size as libc::size_t) as *mut u8
} else {
let mut out = ptr::null();
let mut out = ptr::null_mut();
let ret = posix_memalign(&mut out,
align as libc::size_t,
size as libc::size_t);
Expand Down
9 changes: 1 addition & 8 deletions src/libcore/any.rs
Expand Up @@ -75,7 +75,7 @@ use mem::transmute;
use option::Option::{self, Some, None};
use raw::TraitObject;
use intrinsics;
#[cfg(not(stage0))] use marker::Sized;
use marker::Sized;

///////////////////////////////////////////////////////////////////////////////
// Any trait
Expand Down Expand Up @@ -175,17 +175,10 @@ pub struct TypeId {
impl TypeId {
/// Returns the `TypeId` of the type this generic function has been
/// instantiated with
#[cfg(not(stage0))]
#[unstable = "may grow a `Reflect` bound soon via marker traits"]
pub fn of<T: ?Sized + 'static>() -> TypeId {
TypeId {
t: unsafe { intrinsics::type_id::<T>() },
}
}

/// dox
#[cfg(stage0)]
pub fn of<T: 'static>() -> TypeId {
unsafe { intrinsics::type_id::<T>() }
}
}
6 changes: 0 additions & 6 deletions src/libcore/intrinsics.rs
Expand Up @@ -44,8 +44,6 @@

use marker::Sized;

#[cfg(stage0)] use any::TypeId;

pub type GlueFn = extern "Rust" fn(*const i8);

#[lang="ty_desc"]
Expand Down Expand Up @@ -208,12 +206,8 @@ extern "rust-intrinsic" {
/// Gets an identifier which is globally unique to the specified type. This
/// function will return the same value for a type regardless of whichever
/// crate it is invoked in.
#[cfg(not(stage0))]
pub fn type_id<T: ?Sized + 'static>() -> u64;

#[cfg(stage0)]
pub fn type_id<T: ?Sized + 'static>() -> TypeId;

/// Create a value initialized to zero.
///
/// `init` is unsafe because it returns a zeroed-out datum,
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/clean/mod.rs
Expand Up @@ -2088,7 +2088,7 @@ impl Clean<Mutability> for ast::Mutability {
}
}

#[derive(Show, Clone, RustcEncodable, RustcDecodable, PartialEq, Copy, Show)]
#[derive(Clone, RustcEncodable, RustcDecodable, PartialEq, Copy, Show)]
pub enum ImplPolarity {
Positive,
Negative,
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/io/mod.rs
Expand Up @@ -1444,7 +1444,7 @@ pub trait Buffer: Reader {
}
}
};
buffer.consume(used);
self.consume(used);
if done {
return Ok(res);
}
Expand Down
2 changes: 0 additions & 2 deletions src/libstd/sync/mpsc/mod.rs
Expand Up @@ -319,8 +319,6 @@ use prelude::v1::*;

use sync::Arc;
use fmt;
#[cfg(stage0)] // NOTE remove use after next snapshot
use marker;
use mem;
use cell::UnsafeCell;

Expand Down
1 change: 1 addition & 0 deletions src/libstd/sys/windows/backtrace.rs
Expand Up @@ -31,6 +31,7 @@ use mem;
use ops::Drop;
use option::Option::{Some, None};
use path::Path;
use ptr;
use result::Result::{Ok, Err};
use slice::SliceExt;
use str::{self, StrExt};
Expand Down
1 change: 1 addition & 0 deletions src/libstd/sys/windows/thread_local.rs
Expand Up @@ -13,6 +13,7 @@ use prelude::v1::*;
use libc::types::os::arch::extra::{DWORD, LPVOID, BOOL};

use mem;
use ptr;
use rt;
use sys_common::mutex::{MUTEX_INIT, Mutex};

Expand Down
1 change: 1 addition & 0 deletions src/libstd/thread_local/mod.rs
Expand Up @@ -459,6 +459,7 @@ mod imp {

use cell::UnsafeCell;
use mem;
use ptr;
use sys_common::thread_local::StaticKey as OsStaticKey;

#[doc(hidden)]
Expand Down
7 changes: 0 additions & 7 deletions src/test/run-make/test-shard-completeness/Makefile

This file was deleted.

16 changes: 0 additions & 16 deletions src/test/run-make/test-shard-completeness/main.rs

This file was deleted.

0 comments on commit 4ffde08

Please sign in to comment.