Skip to content

Conversation

@GrayJack
Copy link
Contributor

This PR should fix #6375

This adds a variation of method_resolution::implements_trait called method_resolution::implements_trait_unique, that only returns true when the trait solving is unique, and also change impls_fnonce to use the later instead.

I also added a test just to be sure.

@flodiebold
Copy link
Member

I'm not sure this is an ideal solution, because impl Clone should never implement Fn, but we can merge it for now and look into that separately.

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 27, 2020

@bors bors bot merged commit 8cfc1cd into rust-lang:master Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Semantic Highlighting: impl Iterator is considered callable

3 participants