]> git.lizzy.rs Git - rust.git/commitdiff
Merge failures
authorNiko Matsakis <niko@alum.mit.edu>
Sat, 9 Nov 2013 01:59:43 +0000 (20:59 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Sat, 9 Nov 2013 01:59:43 +0000 (20:59 -0500)
src/librustc/metadata/tydecode.rs
src/librustc/middle/ty.rs

index 18447e6cbc8cd65a9ba3f8e3ab25399f36b9edd8..31561e730d541b0d3c51b160e260332536131016 100644 (file)
@@ -551,6 +551,7 @@ fn parse_sig(st: &mut PState, conv: conv_did) -> ty::FnSig {
     let variadic = match next(st) {
         'V' => true,
         'N' => false,
+        r => fail!(format!("Bad variadic: {}", r)),
     };
     let ret_ty = parse_ty(st, |x,y| conv(x,y));
     ty::FnSig {binder_id: id,
index ecb178e2c97c893530fbba35ee400711a15d1763..5072a95ddcf1bb145781149b4f6e90c5c321b88f 100644 (file)
@@ -4245,7 +4245,8 @@ fn fold_sig(&mut self,
             // are erased at trans time.
             ty::FnSig { binder_id: ast::DUMMY_NODE_ID,
                         inputs: ty_fold::fold_ty_vec(self, sig.inputs),
-                        output: self.fold_ty(sig.output) }
+                        output: self.fold_ty(sig.output),
+                        variadic: sig.variadic }
         }
     }
 }
@@ -4572,7 +4573,7 @@ pub fn hash_crate_independent(tcx: ctxt, t: t, local_hash: @str) -> u64 {
             ReEarlyBound(*) |
             ReLateBound(*) |
             ReFree(*) |
-            ReStatic(*) |
+            ReScope(*) |
             ReInfer(*) => {
                 tcx.sess.bug("non-static region found when hashing a type")
             }