From c5a18c44e5211282c22b9ca7aae8700ee8ca1817 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 11 Nov 2019 17:36:27 +0300 Subject: Introduce hir::GenericParam Unlike existing hir::GenericParams, this is a global ID. --- crates/ra_ide_api/src/references/name_definition.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api/src') diff --git a/crates/ra_ide_api/src/references/name_definition.rs b/crates/ra_ide_api/src/references/name_definition.rs index 450f7ea9b..ccd75278a 100644 --- a/crates/ra_ide_api/src/references/name_definition.rs +++ b/crates/ra_ide_api/src/references/name_definition.rs @@ -4,7 +4,8 @@ //! Note that the reference search is possible for not all of the classified items. use hir::{ - Adt, AssocItem, HasSource, Local, MacroDef, Module, ModuleDef, StructField, Ty, VariantDef, + Adt, AssocItem, GenericParam, HasSource, Local, MacroDef, Module, ModuleDef, StructField, Ty, + VariantDef, }; use ra_syntax::{ast, ast::VisibilityOwner}; @@ -18,7 +19,7 @@ pub enum NameKind { Def(ModuleDef), SelfType(Ty), Local(Local), - GenericParam(u32), + GenericParam(GenericParam), } #[derive(PartialEq, Eq)] -- cgit v1.2.3