Skip to content

Show goto type actions for Const and TypeParams #7154

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 3 commits into from
Jan 4, 2021

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jan 4, 2021

Shows goto type actions for type parameters:
Code_6hn3rowu9M

Shows goto type actions for const parameters:
Code_8UFCcbZL3z

Also shows implementations for Self:
Code_eQj1pWfser

Copy link
Member

@matklad matklad left a comment

Choose a reason for hiding this comment

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

bors r+

@@ -1276,6 +1276,18 @@ impl TypeParam {
}
}

pub fn trait_bounds(self, db: &dyn HirDatabase) -> Vec<Trait> {
Copy link
Member

Choose a reason for hiding this comment

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

The return type here is wrong (it loses info about type params). We might want to introduce TraitRef to code model.

@bors
Copy link
Contributor

bors bot commented Jan 4, 2021

@bors bors bot merged commit 6f8af89 into rust-lang:master Jan 4, 2021
@Veykril Veykril deleted the hover-stuff branch January 18, 2021 17:28
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.

2 participants