Skip to content

Commit ae21758

Browse files
committed
Patch long line.
1 parent 00cbb85 commit ae21758

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc/middle/traits/select.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,12 +1259,11 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
12591259
} else {
12601260
// Recursively check all supertraits to find out if any further
12611261
// bounds are required and thus we must fulfill.
1262-
let tmp_tr =
1262+
let principal =
12631263
data.principal_trait_ref_with_self_ty(self.tcx(),
12641264
self.tcx().types.err);
1265-
for tr in util::supertraits(self.tcx(), tmp_tr) {
1265+
for tr in util::supertraits(self.tcx(), principal) {
12661266
let td = ty::lookup_trait_def(self.tcx(), tr.def_id());
1267-
12681267
if td.bounds.builtin_bounds.contains(&bound) {
12691268
return Ok(If(Vec::new()))
12701269
}

0 commit comments

Comments
 (0)