Skip to content

Commit f9cb7df

Browse files
committed
Fix typo that resulted in comparison-to-self
1 parent 0eb4d46 commit f9cb7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
16141614
//
16151615
// We always upcast when we can because of reason
16161616
// #2 (region bounds).
1617-
data_a.principal.def_id() == data_a.principal.def_id() &&
1617+
data_a.principal.def_id() == data_b.principal.def_id() &&
16181618
data_a.builtin_bounds.is_superset(&data_b.builtin_bounds)
16191619
}
16201620

0 commit comments

Comments
 (0)