]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #94237 - compiler-errors:dont-wrap-ambiguous-receivers, r=lcnr
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 22 Feb 2022 11:16:33 +0000 (12:16 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Feb 2022 11:16:33 +0000 (12:16 +0100)
commit396910a66473b6891983b778621dfbd3ac1593b4
treef5268bed91485d4cb63ee10ba2d602faff088d7f
parentb322382893edd96eed2c59c9d1297fbe9ffdcb69
parent0626919f21a82b9bbe8d20e3e5e98b9cfd76015e
Rollup merge of #94237 - compiler-errors:dont-wrap-ambiguous-receivers, r=lcnr

Do not suggest wrapping an item if it has ambiguous un-imported methods

If the method is defined for the receiver we have, but is ambiguous during probe, then it probably comes from one of several traits that just weren't `use`d. Don't suggest wrapping the receiver in `Box`/etc., even if that makes the method probe unambiguous.

Fixes #94218