Use dedup instead of dedup_by

Co-Authored-By: estebank <estebank@users.noreply.github.com>
This commit is contained in:
Oliver Scherer 2018-12-13 09:36:18 -08:00 committed by GitHub
parent bec5b664fe
commit a39f184437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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{}",