mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Implement beginnings of generics
- add HIR for generic params - resolve generic params in type paths - add substitions for ADTs - insert type variables for substitutions
This commit is contained in:
parent
415cdc5210
commit
688a45e00b
13 changed files with 288 additions and 82 deletions
|
@ -1,3 +1,6 @@
|
|||
//! This module contains the implementation details of the HIR for ADTs, i.e.
|
||||
//! structs and enums (and unions).
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use ra_syntax::{
|
||||
|
@ -62,7 +65,7 @@ fn get_def_id(
|
|||
};
|
||||
let loc = DefLoc {
|
||||
kind: expected_kind,
|
||||
source_item_id: source_item_id,
|
||||
source_item_id,
|
||||
..*same_file_loc
|
||||
};
|
||||
loc.id(db)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue