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
+1 -1
View File
@@ -428,7 +428,7 @@ macro_rules! report_function {
.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{}",