}
}
- trans_method(ccx, path, *method, param_substs_opt, self_ty, llfn,
+ trans_method(ccx,
+ path,
+ *method,
+ param_substs_opt,
+ self_ty,
+ llfn,
ast_util::local_def(id));
}
}
_ => {
// determine the (monomorphized) type that `self` maps to for
// this method
- let self_ty;
- match base_self_ty {
- None => self_ty = ty::node_id_to_type(ccx.tcx, method.self_id),
- Some(provided_self_ty) => self_ty = provided_self_ty
- }
+ let self_ty = match base_self_ty {
+ None => ty::node_id_to_type(ccx.tcx, method.self_id),
+ Some(provided_self_ty) => provided_self_ty,
+ };
let self_ty = match param_substs {
None => self_ty,
Some(@param_substs {tys: ref tys, _}) => {
node_type_needs(cx, use_tydesc, val.id);
}
expr_call(f, _, _) => {
- for vec::each(ty::ty_fn_args(ty::node_id_to_type(cx.ccx.tcx,
- f.id))) |a| {
+ for ty::ty_fn_args(ty::node_id_to_type(cx.ccx.tcx, f.id))).each |a| {
type_needs(cx, use_repr, a.ty);
}
}