Skip to content

Commit 75fdb95

Browse files
committed
change .node -> .kind after rebase
1 parent cb4ed52 commit 75fdb95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
154154
// True if `expr` is a `Try::from_ok(())` that is a result of desugaring a try block
155155
// without the final expr (e.g. `try { return; }`). We don't want to generate an
156156
// unreachable_code lint for it since warnings for autogenerated code are confusing.
157-
let is_try_block_generated_unit_expr = match expr.node {
157+
let is_try_block_generated_unit_expr = match expr.kind {
158158
ExprKind::Call(_, ref args) if expr.span.is_desugaring(DesugaringKind::TryBlock) =>
159159
args.len() == 1 && args[0].span.is_desugaring(DesugaringKind::TryBlock),
160160

0 commit comments

Comments
 (0)