From f9cb7dfc0c92e2196ee04b1a138f37069e60d71d Mon Sep 17 00:00:00 2001 From: Johannes Muenzel Date: Sat, 22 Oct 2016 13:51:31 -0700 Subject: [PATCH] Fix typo that resulted in comparison-to-self --- src/librustc/traits/select.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/traits/select.rs b/src/librustc/traits/select.rs index f4747b5b108..941cef39fb2 100644 --- a/src/librustc/traits/select.rs +++ b/src/librustc/traits/select.rs @@ -1614,7 +1614,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> { // // We always upcast when we can because of reason // #2 (region bounds). - data_a.principal.def_id() == data_a.principal.def_id() && + data_a.principal.def_id() == data_b.principal.def_id() && data_a.builtin_bounds.is_superset(&data_b.builtin_bounds) }