Skip to content

Commit

Permalink
Add missing brace
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jan 28, 2021
1 parent 899aae4 commit 85ad773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_passes/src/dead.rs
Expand Up @@ -37,7 +37,7 @@ fn should_explore(tcx: TyCtxt<'_>, hir_id: hir::HirId) -> bool {
)
}

fn base_expr<'a>(mut expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a>
fn base_expr<'a>(mut expr: &'a hir::Expr<'a>) -> &'a hir::Expr<'a> {
loop {
match expr.kind {
hir::ExprKind::Field(base, ..) => expr = base,
Expand Down

0 comments on commit 85ad773

Please sign in to comment.