]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #89248 - hkmatsumoto:suggest-similarly-named-assoc-items, r=estebank
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 1 Oct 2021 01:05:22 +0000 (18:05 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 01:05:22 +0000 (18:05 -0700)
commit837ac877091b540d95ee6a75a29e29cb64894d7e
tree255979f352c66e91cef079bd72c1a13a0f30ca76
parentb437be45ea74905298b046b521a328b0d7899511
parentcef736f8a05bab8d9a16f7120b5800670ef768ee
Rollup merge of #89248 - hkmatsumoto:suggest-similarly-named-assoc-items, r=estebank

Suggest similarly named associated items in trait impls

Fix #85942

Previously, the compiler didn't suggest similarly named associated items unlike we do in many situations. This patch adds such diagnostics for associated functions, types, and constants.
compiler/rustc_resolve/src/diagnostics.rs
compiler/rustc_resolve/src/late/diagnostics.rs
compiler/rustc_resolve/src/lib.rs