diff options
author | Lukas Wirth <[email protected]> | 2020-12-11 12:49:32 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-12-11 23:56:52 +0000 |
commit | 11f86641829273e2b2b7023c2028bb475fce58ee (patch) | |
tree | 8633b96c3f812412ea6c19acb1b6a770292d4697 /crates/hir_def/src/lib.rs | |
parent | 41321d96789ed918eebda02ada76758765d19d16 (diff) |
Add Lifetimes to the HIR
Diffstat (limited to 'crates/hir_def/src/lib.rs')
-rw-r--r-- | crates/hir_def/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/hir_def/src/lib.rs b/crates/hir_def/src/lib.rs index 02ed30e4d..a1bbc729f 100644 --- a/crates/hir_def/src/lib.rs +++ b/crates/hir_def/src/lib.rs | |||
@@ -224,6 +224,13 @@ pub struct TypeParamId { | |||
224 | pub type LocalTypeParamId = Idx<generics::TypeParamData>; | 224 | pub type LocalTypeParamId = Idx<generics::TypeParamData>; |
225 | 225 | ||
226 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 226 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
227 | pub struct LifetimeParamId { | ||
228 | pub parent: GenericDefId, | ||
229 | pub local_id: LocalLifetimeParamId, | ||
230 | } | ||
231 | pub type LocalLifetimeParamId = Idx<generics::LifetimeParamData>; | ||
232 | |||
233 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | ||
227 | pub enum ContainerId { | 234 | pub enum ContainerId { |
228 | ModuleId(ModuleId), | 235 | ModuleId(ModuleId), |
229 | DefWithBodyId(DefWithBodyId), | 236 | DefWithBodyId(DefWithBodyId), |