Skip to content

2021 prelude migration lint: Check if trait is actually implemented #86902

Closed
@m-ou-se

Description

@m-ou-se

(As I mentioned on Zulip:)

I tried out the migration lints on some of my own code, and ran into one false positive:

  • A StructOpt struct being used with Opt::from_iter
 help: disambiguate the associated function: `<Opt as StructOpt>::from_iter`

This doesn't actually become ambiguous when FromIterator is imported, because Opt doesn't implement that.


Niko said:

shouldn't be that hard, we just need a call to evaluate_predicate I think

Metadata

Metadata

Assignees

Labels

A-edition-2021Area: The 2021 editionD-editionDiagnostics: An error or lint that should account for edition differences.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions