Skip to content

Commit

Permalink
Use dedup instead of dedup_by
Browse files Browse the repository at this point in the history
Co-Authored-By: estebank <estebank@users.noreply.github.com>
  • Loading branch information
oli-obk and estebank committed Dec 13, 2018
1 parent bec5b66 commit a39f184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/method/suggest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
.map(|p| format!("`{} : {}`", p.self_ty(), p))
.collect::<Vec<_>>();
bound_list.sort();
bound_list.dedup_by(|a, b| a == b); // #35677
bound_list.dedup(); // #35677
let bound_list = bound_list.join("\n");
err.note(&format!("the method `{}` exists but the following trait bounds \
were not satisfied:\n{}",
Expand Down

0 comments on commit a39f184

Please sign in to comment.