Merge failures

This commit is contained in:
Niko Matsakis 2013-11-08 20:59:43 -05:00
parent f4f4a35b5b
commit 98f79735c3
2 changed files with 4 additions and 2 deletions

View 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,

View File

@ -4245,7 +4245,8 @@ pub fn normalize_ty(cx: ctxt, t: t) -> t {
// 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")
}