- if let Some(substs) = tcx.lift(&substs) {
- let types = substs.types().rev().skip(child_types);
- for ((def_id, has_default), actual) in type_params.zip(types) {
- if !has_default {
- break;
- }
- if tcx.type_of(def_id).subst(tcx, substs) != actual {
- break;
- }
- num_supplied_defaults += 1;
+ let substs = tcx.lift(&substs).expect("could not lift for printing");
+ let types = substs.types().rev().skip(child_types);
+ for ((def_id, has_default), actual) in type_params.zip(types) {
+ if !has_default {
+ break;