mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Publicise GenericParams
See https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Exposing.20GenericParam.2Ename
This commit is contained in:
parent
076921c5c7
commit
9df3d2e775
1 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,9 @@ use crate::{
|
||||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||||
pub struct GenericParam {
|
pub struct GenericParam {
|
||||||
// FIXME: give generic params proper IDs
|
// FIXME: give generic params proper IDs
|
||||||
pub(crate) idx: u32,
|
pub idx: u32,
|
||||||
pub(crate) name: Name,
|
pub name: Name,
|
||||||
pub(crate) default: Option<Path>,
|
pub default: Option<Path>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Data about the generic parameters of a function, struct, impl, etc.
|
/// Data about the generic parameters of a function, struct, impl, etc.
|
||||||
|
|
Loading…
Reference in a new issue