Skip to content

fixup: remove unnecessary Option #13225

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

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Sep 12, 2022

Fixup for #13223, two things:

  • normalize_projection_query() (and consequently HirDatabase::normalize_projection()) never returns None (well, it used to when I first wrote it...), so just return Ty instead of Option<Ty>
  • When chalk cannot normalize projection uniquely, normalize_trait_assoc_type() used to return None before fix: handle lifetime variables in projection normalization #13223, but not anymore because of the first point. I restored the behavior so its callers work as before.

@Veykril
Copy link
Member

Veykril commented Sep 13, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Sep 13, 2022

📌 Commit d223c28 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 13, 2022

⌛ Testing commit d223c28 with merge ba15f75...

@bors
Copy link
Contributor

bors commented Sep 13, 2022

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

@bors bors merged commit ba15f75 into rust-lang:master Sep 13, 2022
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.

3 participants