diff options
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), |