internal: Simplify hir_ty::utils

This commit is contained in:
Lukas Wirth 2022-06-12 16:07:08 +02:00
parent 7a0ab1358c
commit 9153f17382
4 changed files with 48 additions and 69 deletions

View file

@ -356,8 +356,8 @@ impl From<TypeParamId> for TypeOrConstParamId {
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
/// A TypeOrConstParamId with an invariant that it actually belongs to a const
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct ConstParamId(TypeOrConstParamId);
impl ConstParamId {