mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
wip lower impl trait to type args
This commit is contained in:
parent
9dec65d3b1
commit
93aa166748
8 changed files with 97 additions and 14 deletions
|
@ -127,7 +127,8 @@ impl Generics {
|
|||
self.find_param(param).0
|
||||
}
|
||||
pub(crate) fn param_name(&self, param: TypeParamId) -> Name {
|
||||
self.find_param(param).1.name.clone()
|
||||
// FIXME make this return Option
|
||||
self.find_param(param).1.name.clone().unwrap_or_else(Name::missing)
|
||||
}
|
||||
fn find_param(&self, param: TypeParamId) -> (u32, &TypeParamData) {
|
||||
if param.parent == self.def {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue