fix a few remaining unused pattern binding warnings

This commit is contained in:
Niko Matsakis 2012-08-27 13:52:45 -07:00
parent 3e6ddf72ba
commit 6d788198d7
2 changed files with 3 additions and 3 deletions

View File

@ -1035,7 +1035,7 @@ fn fold_regions_and_ty(
ty_trait(def_id, ref substs, vst) => {
ty::mk_trait(cx, def_id, fold_substs(substs, fldr, fldt), vst)
}
ref sty @ ty_fn(f) => {
ty_fn(f) => {
let new_proto;
match f.proto {
proto_bare =>
@ -2229,7 +2229,7 @@ pure fn hash_region(r: &region) -> uint {
(hash_bound_region(&br)) << 2u | 1u,
re_scope(id) => ((id as uint) << 2u) | 2u,
re_var(id) => (id.to_uint() << 2u) | 3u,
re_bot => 4u
re_static => 4u
}
}

View File

@ -892,7 +892,7 @@ fn check_expr_with_unifier(fcx: @fn_ctxt,
// functions. Therefore, we match one level of structure.
let fn_ty =
match structure_of(fcx, sp, in_fty) {
sty @ ty::ty_fn(ref fn_ty) => {
ty::ty_fn(ref fn_ty) => {
replace_bound_regions_in_fn_ty(
fcx.ccx.tcx, @nil, None, fn_ty,
|_br| fcx.infcx.next_region_var(sp,