Skip to content

Commit

Permalink
Unrolled build for rust-lang#122689
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#122689 - Jarcho:missing_try, r=compiler-errors

Add missing `try_visit` calls in visitors.
  • Loading branch information
rust-timer authored Mar 18, 2024
2 parents 3cdcdaf + 407b58c commit 72ebd20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_ast/src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ pub fn walk_assoc_item<'a, V: Visitor<'a>>(
}
AssocItemKind::Delegation(box Delegation { id, qself, path, body }) => {
if let Some(qself) = qself {
visitor.visit_ty(&qself.ty);
try_visit!(visitor.visit_ty(&qself.ty));
}
try_visit!(visitor.visit_path(path, *id));
visit_opt!(visitor, visit_block, body);
Expand Down Expand Up @@ -994,7 +994,7 @@ pub fn walk_expr<'a, V: Visitor<'a>>(visitor: &mut V, expression: &'a Expr) -> V
ExprKind::InlineAsm(asm) => try_visit!(visitor.visit_inline_asm(asm)),
ExprKind::FormatArgs(f) => try_visit!(visitor.visit_format_args(f)),
ExprKind::OffsetOf(container, fields) => {
visitor.visit_ty(container);
try_visit!(visitor.visit_ty(container));
walk_list!(visitor, visit_ident, fields.iter().copied());
}
ExprKind::Yield(optional_expression) => {
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_hir/src/intravisit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ pub fn walk_generic_param<'v, V: Visitor<'v>>(
GenericParamKind::Const { ref ty, ref default, is_host_effect: _ } => {
try_visit!(visitor.visit_ty(ty));
if let Some(ref default) = default {
visitor.visit_const_param_default(param.hir_id, default);
try_visit!(visitor.visit_const_param_default(param.hir_id, default));
}
}
}
Expand Down

0 comments on commit 72ebd20

Please sign in to comment.