1
Fork 0

awdawdawd

This commit is contained in:
Ellen 2021-12-13 19:14:35 +00:00
parent 8f117a77d0
commit 7175980ff5
3 changed files with 5 additions and 21 deletions

View file

@ -255,23 +255,9 @@ pub struct ConstArg {
pub span: Span,
}
#[derive(Copy, Clone, Encodable, Debug, HashStable_Generic)]
pub enum InferKind {
Const,
Type,
}
impl InferKind {
#[inline]
pub fn is_type(self) -> bool {
matches!(self, InferKind::Type)
}
}
#[derive(Encodable, Debug, HashStable_Generic)]
pub struct InferArg {
pub hir_id: HirId,
pub kind: InferKind,
pub span: Span,
}