mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +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
|
@ -755,7 +755,7 @@ pub struct TypeParam {
|
|||
impl TypeParam {
|
||||
pub fn name(self, db: &impl HirDatabase) -> Name {
|
||||
let params = db.generic_params(self.id.parent);
|
||||
params.types[self.id.local_id].name.clone()
|
||||
params.types[self.id.local_id].name.clone().unwrap_or_else(Name::missing)
|
||||
}
|
||||
|
||||
pub fn module(self, db: &impl HirDatabase) -> Module {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue