about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-01-06 17:53:14 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-01-06 17:53:14 -0500
commitab02f9e42a15f359bc3c732311deee678fe2485d (patch)
treea0bc9a81b77ce4f2c3ee722408d6cc74fd13c636
parent3f1cf328b3d7c21d4e43f2a90cd7e83fb863b81f (diff)
downloadrust-ab02f9e42a15f359bc3c732311deee678fe2485d.tar.gz
rust-ab02f9e42a15f359bc3c732311deee678fe2485d.zip
Workaround privacy bug or something else; filter_to_traits() fails to
link, but this does the same thing.
-rw-r--r--src/librustc_typeck/check/method/probe.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/method/probe.rs b/src/librustc_typeck/check/method/probe.rs
index d7a42b59a12..1634b47988d 100644
--- a/src/librustc_typeck/check/method/probe.rs
+++ b/src/librustc_typeck/check/method/probe.rs
@@ -645,7 +645,7 @@ impl<'a,'tcx> ProbeContext<'a,'tcx> {
                    predicates.repr(self.tcx()));
             for poly_bound in
                 traits::elaborate_predicates(self.tcx(), predicates)
-                .filter_map(|p| p.to_opt_poly_trait_ref()) // TODO filter_to_traits()
+                .filter_map(|p| p.to_opt_poly_trait_ref())
                 .filter(|b| b.def_id() == trait_def_id)
             {
                 let bound = self.erase_late_bound_regions(&poly_bound);