about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohannes Muenzel <jmuenzel@gmail.com>2016-10-22 13:51:31 -0700
committerJohannes Muenzel <jmuenzel@gmail.com>2016-10-22 13:51:31 -0700
commitf9cb7dfc0c92e2196ee04b1a138f37069e60d71d (patch)
treef870830ffc26c2e0e966084ea7c36f850fdf0712
parent0eb4d46d03ce486a98c3ed24f9aa0406ff0b2a43 (diff)
downloadrust-f9cb7dfc0c92e2196ee04b1a138f37069e60d71d.tar.gz
rust-f9cb7dfc0c92e2196ee04b1a138f37069e60d71d.zip
Fix typo that resulted in comparison-to-self
-rw-r--r--src/librustc/traits/select.rs2
1 files changed, 1 insertions, 1 deletions
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)
             }