aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-18 07:35:33 +0000
committerAleksey Kladov <[email protected]>2019-11-18 07:35:33 +0000
commit9df3d2e775a9387b346da3da63e19e2842f72041 (patch)
tree6049a758aec6d66d6a319ae67e48ec94dabe1e64 /crates/ra_hir
parent076921c5c7fd5a880a20e0a022520469447f7b49 (diff)
Publicise GenericParams
See https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Exposing.20GenericParam.2Ename
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/generics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/generics.rs b/crates/ra_hir/src/generics.rs
index 9c261eda9..c35482ae8 100644
--- a/crates/ra_hir/src/generics.rs
+++ b/crates/ra_hir/src/generics.rs
@@ -22,9 +22,9 @@ use crate::{
22#[derive(Clone, PartialEq, Eq, Debug)] 22#[derive(Clone, PartialEq, Eq, Debug)]
23pub struct GenericParam { 23pub struct GenericParam {
24 // FIXME: give generic params proper IDs 24 // FIXME: give generic params proper IDs
25 pub(crate) idx: u32, 25 pub idx: u32,
26 pub(crate) name: Name, 26 pub name: Name,
27 pub(crate) default: Option<Path>, 27 pub default: Option<Path>,
28} 28}
29 29
30/// Data about the generic parameters of a function, struct, impl, etc. 30/// Data about the generic parameters of a function, struct, impl, etc.