]> git.lizzy.rs Git - rust.git/commit
Do not incorrectly suggest restricting implied bounds
authorEsteban Küber <esteban@kuber.com.ar>
Fri, 13 Jan 2023 20:50:34 +0000 (20:50 +0000)
committerEsteban Küber <esteban@kuber.com.ar>
Fri, 13 Jan 2023 20:50:34 +0000 (20:50 +0000)
commit22a0e4fa6e08acf2de50ed87cfb909092ab0459d
treebd05b53302ecfbd1799062a9524e777aedbf2077
parent81ba427a7b15d614a74812ef3fd1467c85d4768d
Do not incorrectly suggest restricting implied bounds

When we have already suggested bounds that imply the about to be
suggested bound, skip them.
compiler/rustc_hir_typeck/src/method/suggest.rs
tests/ui/missing-trait-bounds/issue-35677.fixed
tests/ui/missing-trait-bounds/issue-35677.stderr