Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Disable invalid cast diagnostics for casts like &T as &dyn Trait #18054

Closed

Conversation

ShoyuVanilla
Copy link
Member

Hope this might suppress false positive diagnostics like #18047

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 5, 2024
@ShoyuVanilla
Copy link
Member Author

So many typos 😅 Will fix and squash tomorrow

@HKalbasi
Copy link
Member

HKalbasi commented Sep 5, 2024

Shouldn't we also suppress it for Box<dyn T> as well?

@ShoyuVanilla
Copy link
Member Author

Shouldn't we also suppress it for Box<dyn T> as well?

Oh, you're right. I neglected it

@ShoyuVanilla ShoyuVanilla marked this pull request as draft September 6, 2024 00:59
@ShoyuVanilla
Copy link
Member Author

It seems that I misdiagnosed the cause of the issue. The test I added works fine without any modification to the logic if I just add minicore: builtin_impls

@ShoyuVanilla
Copy link
Member Author

#18047 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants