diff options
| author | Eric Holk <ericholk@microsoft.com> | 2025-03-12 16:27:52 -0700 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2025-03-14 12:21:59 -0700 |
| commit | 1c0916a2b3cd6c595e1c7b69a31d507f7619bb67 (patch) | |
| tree | 51e37950d5efc1cee3074816313740909128b344 /compiler/rustc_ast_lowering/src/expr.rs | |
| parent | edf65e735cd871d01149131f5d050293a9f1037c (diff) | |
| download | rust-1c0916a2b3cd6c595e1c7b69a31d507f7619bb67.tar.gz rust-1c0916a2b3cd6c595e1c7b69a31d507f7619bb67.zip | |
Preserve yield position during pretty printing
Diffstat (limited to 'compiler/rustc_ast_lowering/src/expr.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs index 5bb6704dde4..19a08f92ce7 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -351,7 +351,7 @@ impl<'hir> LoweringContext<'_, 'hir> { rest, ) } - ExprKind::Yield(opt_expr) => self.lower_expr_yield(e.span, opt_expr.as_deref()), + ExprKind::Yield(opt_expr, _) => self.lower_expr_yield(e.span, opt_expr.as_deref()), ExprKind::Err(guar) => hir::ExprKind::Err(*guar), ExprKind::UnsafeBinderCast(kind, expr, ty) => hir::ExprKind::UnsafeBinderCast( |
