mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
Use dedup instead of dedup_by
Co-Authored-By: estebank <estebank@users.noreply.github.com>
This commit is contained in:
@@ -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{}",
|
||||
|
||||
Reference in New Issue
Block a user