Register new snapshots

This commit is contained in:
Alex Crichton 2014-04-07 13:30:48 -07:00
parent c83afb9719
commit c3ea3e439f
74 changed files with 194 additions and 208 deletions

View file

@ -39,7 +39,7 @@ pub trait Finally<T> {
fn finally(&self, dtor: ||) -> T;
}
impl<'a,T> Finally<T> for 'a || -> T {
impl<'a,T> Finally<T> for ||: 'a -> T {
fn finally(&self, dtor: ||) -> T {
try_finally(&mut (), (),
|_, _| (*self)(),
@ -101,7 +101,7 @@ pub fn try_finally<T,U,R>(mutate: &mut T,
struct Finallyalizer<'a,A> {
mutate: &'a mut A,
dtor: 'a |&mut A|
dtor: |&mut A|: 'a
}
#[unsafe_destructor]

View file

@ -28,7 +28,7 @@ for it to terminate.
The executing thread has no access to a task pointer and will be using
a normal large stack.
*/
pub fn run_in_bare_thread(f: proc:Send()) {
pub fn run_in_bare_thread(f: proc():Send) {
use rt::thread::Thread;
Thread::start(f).join()
}