From 688a45e00b53412a7a16360c6d678a5d91a95789 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 12 Jan 2019 21:27:35 +0100 Subject: Implement beginnings of generics - add HIR for generic params - resolve generic params in type paths - add substitions for ADTs - insert type variables for substitutions --- crates/ra_hir/src/adt.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/ra_hir/src/adt.rs') diff --git a/crates/ra_hir/src/adt.rs b/crates/ra_hir/src/adt.rs index d87fe7049..ab1c428db 100644 --- a/crates/ra_hir/src/adt.rs +++ b/crates/ra_hir/src/adt.rs @@ -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) -- cgit v1.2.3