librustc: Register new snapshots

This commit is contained in:
Patrick Walton 2013-03-21 18:10:20 -07:00
parent ec8345b18a
commit e7dbe6cd6f
7 changed files with 8 additions and 99 deletions

View file

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

View file

@ -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 */
@ -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;

View file

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

View file

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

View file

@ -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 {
@ -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,

View file

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

View file

@ -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