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: Don't show type mismatches for {unknown} to non-{unknown} mismatches #16583

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Feb 16, 2024

Fixes #15704

Basically we zip the two types, inspecting their substitutions if the constructors are the same, if we encounter a zip step with an {unknown} on one side and a non-{unknown} on the other we error out and discard the diagnostic. Otherwise we keep it.

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

Veykril commented Feb 16, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 16, 2024

📌 Commit fd652ce has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Feb 16, 2024

⌛ Testing commit fd652ce with merge c864953...

@bors
Copy link
Collaborator

bors commented Feb 16, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing c864953 to master...

@bors bors merged commit c864953 into rust-lang:master Feb 16, 2024
11 checks passed
@Veykril Veykril deleted the unknown-mismatch branch February 16, 2024 12:16
@svix-jplatte
Copy link

This has annoyed me a bunch of times outside of ATPIT, thanks for fixing it! ❤️

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.

Incorrect type error for wrapped defining use of TAIT/ATPIT
4 participants