Skip to content

Commit 98f7973

Browse files
committed
Merge failures
1 parent f4f4a35 commit 98f7973

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/librustc/metadata/tydecode.rs

+1
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ fn parse_sig(st: &mut PState, conv: conv_did) -> ty::FnSig {
551551
let variadic = match next(st) {
552552
'V' => true,
553553
'N' => false,
554+
r => fail!(format!("Bad variadic: {}", r)),
554555
};
555556
let ret_ty = parse_ty(st, |x,y| conv(x,y));
556557
ty::FnSig {binder_id: id,

src/librustc/middle/ty.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -4245,7 +4245,8 @@ pub fn normalize_ty(cx: ctxt, t: t) -> t {
42454245
// are erased at trans time.
42464246
ty::FnSig { binder_id: ast::DUMMY_NODE_ID,
42474247
inputs: ty_fold::fold_ty_vec(self, sig.inputs),
4248-
output: self.fold_ty(sig.output) }
4248+
output: self.fold_ty(sig.output),
4249+
variadic: sig.variadic }
42494250
}
42504251
}
42514252
}
@@ -4572,7 +4573,7 @@ pub fn hash_crate_independent(tcx: ctxt, t: t, local_hash: @str) -> u64 {
45724573
ReEarlyBound(*) |
45734574
ReLateBound(*) |
45744575
ReFree(*) |
4575-
ReStatic(*) |
4576+
ReScope(*) |
45764577
ReInfer(*) => {
45774578
tcx.sess.bug("non-static region found when hashing a type")
45784579
}

0 commit comments

Comments
 (0)