]> git.lizzy.rs Git - rust.git/commitdiff
Use `dedup` instead of `dedup_by`
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Thu, 13 Dec 2018 17:36:18 +0000 (09:36 -0800)
committerGitHub <noreply@github.com>
Thu, 13 Dec 2018 17:36:18 +0000 (09:36 -0800)
Co-Authored-By: estebank <estebank@users.noreply.github.com>
src/librustc_typeck/check/method/suggest.rs

index 4e5ceda54d44aa16952a3fbe1b0e9d4b3c240172..09063579c4214b73d0943616820efb3238be4457 100644 (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{}",