mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
internal: Simplify hir_ty::utils
This commit is contained in:
parent
7a0ab1358c
commit
9153f17382
4 changed files with 48 additions and 69 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue