Skip to content

Use hir::GenericParam in ide_db::Definition instead of relisting all 3 #7206

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
Jan 10, 2021

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jan 8, 2021

Basically just this:

 pub enum Definition {
     Macro(MacroDef),
     Field(Field),
     ModuleDef(ModuleDef),
     SelfType(Impl),
     Local(Local),
-    TypeParam(TypeParam),
-    LifetimeParam(LifetimeParam),
-    ConstParam(ConstParam),
+    GenericParam(GenericParam),
     Label(Label),
 }

@matklad
Copy link
Member

matklad commented Jan 10, 2021

Niiice!

bors d+

@bors
Copy link
Contributor

bors bot commented Jan 10, 2021

✌️ Veykril can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@Veykril Veykril changed the title Use hir::GenericParams in ide_db::Definition instead of relisting all 3 Use hir::GenericParam in ide_db::Definition instead of relisting all 3 Jan 10, 2021
@Veykril
Copy link
Member Author

Veykril commented Jan 10, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 10, 2021

@bors bors bot merged commit dcbb77c into rust-lang:master Jan 10, 2021
@Veykril Veykril deleted the gpdef 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