]> git.lizzy.rs Git - rust.git/commitdiff
More test fixes and rebase conflicts
authorAlex Crichton <alex@alexcrichton.com>
Thu, 8 Jan 2015 04:06:37 +0000 (20:06 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 8 Jan 2015 04:08:37 +0000 (20:08 -0800)
src/libstd/sys/windows/timer.rs
src/test/pretty/path-type-bounds.rs

index 343b78543bfd01dcd35107a3f9d2b411c2a46c1b..1ae3979cd9accac8679f91c7c8f02ffc6ebcd080 100644 (file)
@@ -91,7 +91,7 @@ fn helper(input: libc::HANDLE, messages: Receiver<Req>, _: ()) {
         } else {
             let remove = {
                 match &mut chans[idx as uint - 1] {
-                    &(ref mut c, oneshot) => { c.call(); oneshot }
+                    &mut (ref mut c, oneshot) => { c.call(); oneshot }
                 }
             };
             if remove {
index f575fb3292480387ed27bc0fae45cf561b5959f0..382394b14070d51d68ffd30c9146157aba4157f0 100644 (file)
@@ -19,6 +19,6 @@ fn foo<'a>(x: Box<Tr+ Sync + 'a>) -> Box<Tr+ Sync + 'a> { x }
 fn main() {
     let x: Box<Tr+ Sync>;
 
-    box() 1i as Box<Tr+ Sync>;
+    Box::new(1i) as Box<Tr+ Sync>;
 }