awdawdawd
This commit is contained in:
parent
8f117a77d0
commit
7175980ff5
3 changed files with 5 additions and 21 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue