Skip to content

Commit ab02f9e

Browse files
committed
Workaround privacy bug or something else; filter_to_traits() fails to
link, but this does the same thing.
1 parent 3f1cf32 commit ab02f9e

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check/method

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/method/probe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ impl<'a,'tcx> ProbeContext<'a,'tcx> {
645645
predicates.repr(self.tcx()));
646646
for poly_bound in
647647
traits::elaborate_predicates(self.tcx(), predicates)
648-
.filter_map(|p| p.to_opt_poly_trait_ref()) // TODO filter_to_traits()
648+
.filter_map(|p| p.to_opt_poly_trait_ref())
649649
.filter(|b| b.def_id() == trait_def_id)
650650
{
651651
let bound = self.erase_late_bound_regions(&poly_bound);

0 commit comments

Comments
 (0)