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:
Florian Diebold 2019-01-12 21:27:35 +01:00
parent 415cdc5210
commit 688a45e00b
13 changed files with 288 additions and 82 deletions

View file

@ -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)