Skip to content

Commit

Permalink
inferkind docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU committed Jan 23, 2025
1 parent 744368d commit 3b5ea05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_hir/src/intravisit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,8 @@ pub fn walk_expr_field<'v, V: Visitor<'v>>(visitor: &mut V, field: &'v ExprField
try_visit!(visitor.visit_ident(field.ident));
visitor.visit_expr(field.expr)
}

/// We track whether an infer var is from a [`Ty`], [`ConstArg`], or [`GenericArg`] so that
/// HIR visitors overriding [`Visitor::visit_infer`] can determine what kind of infer is being visited
pub enum InferKind<'hir> {
Ty(&'hir Ty<'hir>),
Const(&'hir ConstArg<'hir>),
Expand Down

0 comments on commit 3b5ea05

Please sign in to comment.