Skip to content

Commit

Permalink
auto merge of #5484 : pcwalton/rust/snapshots, r=pcwalton
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Mar 22, 2013
2 parents 27434e8 + e7dbe6c commit 9584c60
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 99 deletions.
12 changes: 0 additions & 12 deletions src/libcore/comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ pub fn stream<T:Owned>() -> (Port<T>, Chan<T>) {

// Add an inherent method so that imports of GenericChan are not
// required.
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pub impl<T: Owned> Chan<T> {
fn send(&self, x: T) { chan_send(self, x) }
fn try_send(&self, x: T) -> bool { chan_try_send(self, x) }
Expand Down Expand Up @@ -148,9 +145,6 @@ fn chan_try_send<T:Owned>(self: &Chan<T>, x: T) -> bool {
}

// Use an inherent impl so that imports are not required:
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pub impl<T: Owned> Port<T> {
fn recv(&self) -> T { port_recv(self) }
fn try_recv(&self) -> Option<T> { port_try_recv(self) }
Expand Down Expand Up @@ -226,9 +220,6 @@ pub fn PortSet<T: Owned>() -> PortSet<T>{
}

// Use an inherent impl so that imports are not required:
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pub impl<T:Owned> PortSet<T> {
fn recv(&self) -> T { port_set_recv(self) }
fn try_recv(&self) -> Option<T> { port_set_try_recv(self) }
Expand Down Expand Up @@ -302,9 +293,6 @@ pure fn port_set_peek<T:Owned>(self: &PortSet<T>) -> bool {
/// A channel that can be shared between many senders.
pub type SharedChan<T> = unstable::Exclusive<Chan<T>>;

#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pub impl<T: Owned> SharedChan<T> {
fn send(&self, x: T) { shared_chan_send(self, x) }
fn try_send(&self, x: T) -> bool { shared_chan_try_send(self, x) }
Expand Down
33 changes: 0 additions & 33 deletions src/libcore/core.rc
Original file line number Diff line number Diff line change
Expand Up @@ -212,34 +212,10 @@ pub use to_str::ToStr;
pub use clone::Clone;


/*
* Export the log levels as global constants. Higher levels mean
* more-verbosity. Error is the bottom level, default logging level is
* warn-and-below.
*/
/// The error log level
#[cfg(stage0)]
pub const error : u32 = 1_u32;
/// The warning log level
#[cfg(stage0)]
pub const warn : u32 = 2_u32;
/// The info log level
#[cfg(stage0)]
pub const info : u32 = 3_u32;
/// The debug log level
#[cfg(stage0)]
pub const debug : u32 = 4_u32;


/* Unsupported interfaces */

// Private APIs
pub mod unstable;
// NOTE: Remove after snapshot
#[cfg(stage0)]
pub mod private {
pub use super::unstable::extfmt;
}

/* For internal use, not exported */

Expand All @@ -255,15 +231,6 @@ pub mod rt;
// can be resolved within libcore.
#[doc(hidden)]
pub mod core {
#[cfg(stage0)]
pub const error : u32 = 1_u32;
#[cfg(stage0)]
pub const warn : u32 = 2_u32;
#[cfg(stage0)]
pub const info : u32 = 3_u32;
#[cfg(stage0)]
pub const debug : u32 = 4_u32;

pub use cmp;
pub use condition;
pub use option;
Expand Down
6 changes: 0 additions & 6 deletions src/libcore/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ pub trait Reader {
fn tell(&self) -> uint;
}

#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
impl Reader for @Reader {
fn read(&self, bytes: &mut [u8], len: uint) -> uint {
self.read(bytes, len)
Expand Down Expand Up @@ -658,9 +655,6 @@ pub trait Writer {
fn get_type(&self) -> WriterType;
}
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
impl Writer for @Writer {
fn write(&self, v: &[const u8]) { self.write(v) }
fn seek(&self, a: int, b: SeekStyle) { self.seek(a, b) }
Expand Down
18 changes: 0 additions & 18 deletions src/librustc/front/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,24 +352,6 @@ fn path_node_global(+ids: ~[ast::ident]) -> @ast::path {
types: ~[] }
}

#[cfg(stage0)]
fn mk_tests(cx: &TestCtxt) -> @ast::item {

let ext_cx = cx.ext_cx;

// The vector of test_descs for this crate
let test_descs = mk_test_descs(cx);

(quote_item!(
pub const tests : &static/[self::std::test::TestDescAndFn] =
$test_descs
;
)).get()
}

#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
fn mk_tests(cx: &TestCtxt) -> @ast::item {

let ext_cx = cx.ext_cx;
Expand Down
27 changes: 0 additions & 27 deletions src/librustc/middle/trans/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,15 +1085,6 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
ast::def_const(did) => {
let const_ty = expr_ty(bcx, ref_expr);

#[cfg(stage0)]
fn get_did(_ccx: @CrateContext, did: ast::def_id)
-> ast::def_id {
did
}

#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
fn get_did(ccx: @CrateContext, did: ast::def_id)
-> ast::def_id {
if did.crate != ast::local_crate {
Expand All @@ -1103,24 +1094,6 @@ fn trans_lvalue_unadjusted(bcx: block, expr: @ast::expr) -> DatumBlock {
}
}

#[cfg(stage0)]
fn get_val(bcx: block, did: ast::def_id, const_ty: ty::t)
-> ValueRef {
let ccx = bcx.ccx();
if did.crate == ast::local_crate {
// The LLVM global has the type of its initializer,
// which may not be equal to the enum's type for
// non-C-like enums.
PointerCast(bcx, base::get_item_val(ccx, did.node),
T_ptr(type_of(bcx.ccx(), const_ty)))
} else {
base::trans_external_path(ccx, did, const_ty)
}
}

#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
fn get_val(bcx: block, did: ast::def_id, const_ty: ty::t)
-> ValueRef {
// The LLVM global has the type of its initializer,
Expand Down
3 changes: 0 additions & 3 deletions src/libstd/comm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ pub struct DuplexStream<T, U> {
}

// Allow these methods to be used without import:
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pub impl<T:Owned,U:Owned> DuplexStream<T, U> {
fn send(&self, x: T) {
self.chan.send(x)
Expand Down
8 changes: 8 additions & 0 deletions src/snapshots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
S 2013-03-21 ed25a67
freebsd-x86_64 5f0b08839ae3d1207808f0d57cbfdb00eff9c883
linux-i386 54765a17c6b6d04a7013cada2a51d190462979b8
linux-x86_64 c6cae795aecb8c4d5f17c73bfdd01d2b0ff32126
macos-i386 bc05e17fc93187a1906f118ecdb258f09317f220
macos-x86_64 c39838814f45e343d4f5754390aad22c41a34ba6
winnt-i386 c4a858ef45ab2c9319e607640b2bbb3bc4b48093

S 2013-02-27 a6d9689
freebsd-x86_64 683f329fe589af854f9a375405468691d98015ac
linux-i386 22f5c2a91941735007ed804586fc0f0e82fc3601
Expand Down

0 comments on commit 9584c60

Please sign in to comment.