Patch long line.

This commit is contained in:
Niko Matsakis 2014-12-29 11:05:35 -05:00
parent 00cf176a5e
commit f1c041a54d

View File

@ -1259,12 +1259,11 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
} else {
// Recursively check all supertraits to find out if any further
// bounds are required and thus we must fulfill.
let tmp_tr =
let principal =
data.principal_trait_ref_with_self_ty(self.tcx(),
self.tcx().types.err);
for tr in util::supertraits(self.tcx(), tmp_tr) {
for tr in util::supertraits(self.tcx(), principal) {
let td = ty::lookup_trait_def(self.tcx(), tr.def_id());
if td.bounds.builtin_bounds.contains(&bound) {
return Ok(If(Vec::new()))
}