Register new snapshots
This commit is contained in:
parent
c83afb9719
commit
c3ea3e439f
74 changed files with 194 additions and 208 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue