Skip to content

Commit e203f30

Browse files
committed
Register new snapshots
1 parent 886819c commit e203f30

19 files changed

+22
-6780
lines changed

mk/stage0.mk

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,13 @@ $$(HLIB0_H_$(1))/$(CFG_EXTRALIB_$(1)): \
9898
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$(EXTRALIB_GLOB_$(1)) $$@
9999
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(EXTRALIB_GLOB_$(4)),$$(notdir $$@))
100100

101-
$$(HLIB0_H_$(1))/$(CFG_LIBRUSTUV_$(1)):
102-
touch $$@
103-
# NOTE: this should get uncommented after a snapshot and the rule above this can
104-
# get deleted, right now we're not expecting a librustuv in a snapshot.
105-
# $$(HLIB0_H_$(1))/$(CFG_LIBRUSTUV_$(1)): \
106-
# $$(TLIB$(2)_T_$(1)_H_$(3))/$(CFG_LIBRUSTUV_$(1)) \
107-
# | $(HLIB0_H_$(1))/
108-
# @$$(call E, cp: $$@)
109-
# $$(call CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTUV_GLOB_$(4)),$$(notdir $$@))
110-
# $$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$(LIBRUSTUV_GLOB_$(1)) $$@
111-
# $$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTUV_GLOB_$(4)),$$(notdir $$@))
101+
$$(HLIB0_H_$(1))/$(CFG_LIBRUSTUV_$(1)): \
102+
$$(TLIB$(2)_T_$(1)_H_$(3))/$(CFG_LIBRUSTUV_$(1)) \
103+
| $(HLIB0_H_$(1))/
104+
@$$(call E, cp: $$@)
105+
$$(call CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTUV_GLOB_$(4)),$$(notdir $$@))
106+
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$(LIBRUSTUV_GLOB_$(1)) $$@
107+
$$(call LIST_ALL_OLD_GLOB_MATCHES_EXCEPT,$$(dir $$@),$(LIBRUSTUV_GLOB_$(4)),$$(notdir $$@))
112108

113109
$$(HLIB0_H_$(1))/$(CFG_LIBRUSTC_$(1)): \
114110
$$(TLIB$(2)_T_$(1)_H_$(3))/$(CFG_LIBRUSTC_$(1)) \

src/librustuv/rustuv.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,14 @@ impl<H, W: Watcher + NativeHandle<*H>> WatcherInterop for W {
232232
}
233233
}
234234

235-
fn close(self, cb: NullCallback) {
236-
let mut this = self;
235+
fn close(mut self, cb: NullCallback) {
237236
{
238-
let data = this.get_watcher_data();
237+
let data = self.get_watcher_data();
239238
assert!(data.close_cb.is_none());
240239
data.close_cb = Some(cb);
241240
}
242241

243-
unsafe { uvll::close(this.native_handle(), close_cb); }
242+
unsafe { uvll::close(self.native_handle(), close_cb); }
244243

245244
extern fn close_cb(handle: *uvll::uv_handle_t) {
246245
let mut h: Handle = NativeHandle::from_native_handle(handle);

src/librustuv/uvio.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,9 @@ trait HomingIO {
122122
a // return the result of the IO
123123
}
124124

125-
fn home_for_io_consume<A>(self, io: &fn(Self) -> A) -> A {
126-
let mut this = self;
127-
let home = this.go_to_IO_home();
128-
let a = io(this); // do IO
125+
fn home_for_io_consume<A>(mut self, io: &fn(Self) -> A) -> A {
126+
let home = self.go_to_IO_home();
127+
let a = io(self); // do IO
129128
HomingIO::restore_original_home(None::<Self>, home);
130129
a // return the result of the IO
131130
}
@@ -239,7 +238,7 @@ impl EventLoop for UvEventLoop {
239238
}
240239
}
241240

242-
#[cfg(not(stage0), not(test))]
241+
#[cfg(not(test))]
243242
#[lang = "event_loop_factory"]
244243
pub extern "C" fn new_loop() -> ~EventLoop {
245244
~UvEventLoop::new() as ~EventLoop

src/libstd/rt/crate_map.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use container::MutableSet;
1212
use hashmap::HashSet;
1313
use option::{Some, None, Option};
1414
use vec::ImmutableVector;
15-
#[cfg(not(stage0))]
1615
use rt::rtio::EventLoop;
1716

1817
// Need to tell the linker on OS X to not barf on undefined symbols
@@ -27,14 +26,6 @@ pub struct ModEntry<'self> {
2726
log_level: *mut u32
2827
}
2928

30-
#[cfg(stage0)]
31-
pub struct CrateMap<'self> {
32-
version: i32,
33-
entries: &'self [ModEntry<'self>],
34-
children: &'self [&'self CrateMap<'self>]
35-
}
36-
37-
#[cfg(not(stage0))]
3829
pub struct CrateMap<'self> {
3930
version: i32,
4031
entries: &'self [ModEntry<'self>],
@@ -45,12 +36,6 @@ pub struct CrateMap<'self> {
4536
#[cfg(not(windows))]
4637
pub fn get_crate_map() -> Option<&'static CrateMap<'static>> {
4738
extern {
48-
#[cfg(stage0)]
49-
#[weak_linkage]
50-
#[link_name = "_rust_crate_map_toplevel"]
51-
static CRATE_MAP: CrateMap<'static>;
52-
53-
#[cfg(not(stage0))]
5439
#[crate_map]
5540
static CRATE_MAP: CrateMap<'static>;
5641
}

src/libstd/rt/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ pub mod io;
121121
/// The EventLoop and internal synchronous I/O interface.
122122
pub mod rtio;
123123

124-
/// libuv and default rtio implementation.
125-
#[cfg(stage0)]
126-
pub mod uv;
127-
128124
/// The Local trait for types that are accessible via thread-local
129125
/// or task-local storage.
130126
pub mod local;
@@ -463,13 +459,6 @@ pub fn in_green_task_context() -> bool {
463459
}
464460
}
465461

466-
#[cfg(stage0)]
467-
pub fn new_event_loop() -> ~rtio::EventLoop {
468-
use rt::uv::uvio::UvEventLoop;
469-
~UvEventLoop::new() as ~rtio::EventLoop
470-
}
471-
472-
#[cfg(not(stage0))]
473462
pub fn new_event_loop() -> ~rtio::EventLoop {
474463
#[fixed_stack_segment]; #[allow(cstack)];
475464

0 commit comments

Comments
 (0)