mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
fix a few remaining unused pattern binding warnings
This commit is contained in:
@@ -1035,7 +1035,7 @@ fn fold_substs(
|
||||
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 @@ fn br_hashmap<V:copy>() -> hashmap<bound_region, V> {
|
||||
(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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -892,7 +892,7 @@ fn check_call_inner(
|
||||
// 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,
|
||||
|
||||
Reference in New Issue
Block a user