Try different Deref/PartialEq orderings before erroring #49454
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inference
Area: Type inference
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I just got this error:
InternedString
implementsDeref<Target = str>
, so I'd expected that this could somehow be made to work.*d.name() == *dep_name
seems to work, but dereferencing explicitly always feels bad. Is there a better way out here? If not, could this solution be suggested?cc @estebank @ehuss
The text was updated successfully, but these errors were encountered: