Skip to content

fix variant resolve for type alias - #15970

Merged
bors merged 1 commit into
rust-lang:masterfrom
Austaras:master
Nov 27, 2023
Merged

bors merged 1 commit into
rust-lang:masterfrom
Austaras:master

Conversation

@Austaras

Copy link
Copy Markdown
Contributor

Closes #15943

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 26, 2023
TypeNs::TypeAliasId(it) => {
let container = it.lookup(self.db.upcast()).container;
let parent_subst = match container {
ItemContainerId::TraitId(id) => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem possible to encounter this -- trait assoc type would either results in Self or Trait.

@Veykril

Veykril commented Nov 27, 2023

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

📌 Commit 2411f13 has been approved by Veykril

It is now in the queue for this repository.

@bors

bors commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

⌛ Testing commit 2411f13 with merge 2ee17bc...

@bors

bors commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

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

@bors
bors merged commit 2ee17bc into rust-lang:master Nov 27, 2023
@cart

cart commented Nov 28, 2023

Copy link
Copy Markdown

Thanks for the fix!

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.

Generic type alias fails to resolve fields

5 participants