Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3b5ea05

Browse files
committed
inferkind docs
1 parent 744368d commit 3b5ea05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎compiler/rustc_hir/src/intravisit.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,8 @@ pub fn walk_expr_field<'v, V: Visitor<'v>>(visitor: &mut V, field: &'v ExprField
909909
try_visit!(visitor.visit_ident(field.ident));
910910
visitor.visit_expr(field.expr)
911911
}
912-
912+
/// We track whether an infer var is from a [`Ty`], [`ConstArg`], or [`GenericArg`] so that
913+
/// HIR visitors overriding [`Visitor::visit_infer`] can determine what kind of infer is being visited
913914
pub enum InferKind<'hir> {
914915
Ty(&'hir Ty<'hir>),
915916
Const(&'hir ConstArg<'hir>),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /