diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-12-13 09:36:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-13 09:36:18 -0800 |
| commit | a39f184437243eaa3a37fd5fed2fb02dbd6c607d (patch) | |
| tree | 9556fe358b672d3d726a4e21c33bccf9a55bdf76 /src | |
| parent | bec5b664fe4908c06665370f8f2afcf430a63f39 (diff) | |
| download | rust-a39f184437243eaa3a37fd5fed2fb02dbd6c607d.tar.gz rust-a39f184437243eaa3a37fd5fed2fb02dbd6c607d.zip | |
Use `dedup` instead of `dedup_by`
Co-Authored-By: estebank <estebank@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/check/method/suggest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/method/suggest.rs b/src/librustc_typeck/check/method/suggest.rs index 4e5ceda54d4..09063579c42 100644 --- a/src/librustc_typeck/check/method/suggest.rs +++ b/src/librustc_typeck/check/method/suggest.rs @@ -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{}", |
