]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #87557 - rylev:fix-invalid-prelude-collision-error, r=nikomatsakis
authorYuki Okushi <jtitor@2k36.org>
Fri, 30 Jul 2021 19:09:29 +0000 (04:09 +0900)
committerGitHub <noreply@github.com>
Fri, 30 Jul 2021 19:09:29 +0000 (04:09 +0900)
Fix issue with autofix for ambiguous associated function from Rust 2021 prelude when struct is generic

Fixes #86940

The test cases and associated issue should make it clear what specifically this is meant to fix. The fix is slightly hacky in that we check against the literal source code of the call site for the presence of `<` in order to determine if the user has included the generics for the struct (meaning we don't need to include them for them).

r? ``@nikomatsakis``


Trivial merge