Skip to content

Commit 1e5dab1

Browse files
authored
Auto merge of #37358 - typelist:select-fix, r=eddyb
Fix typo that resulted in comparison-to-self This line was introduced in commit 843db01, rebased from eddyb's c5f6f84. I don't know whether this fixes anything in practice, but it seems like the changed version was what was intended originally. r? @eddyb
2 parents 1bc7f8f + f9cb7df commit 1e5dab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/select.rs

+1-1
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)