about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-06 02:07:34 +0000
committerbors <bors@rust-lang.org>2023-11-06 02:07:34 +0000
commit152a4e90d19e04ea4714aef0f19c41ad5bc8f9ad (patch)
tree0ce337b761ddc7e078fac8692f33b5b44343d31d /tests
parent7a892ab8d8b6fd7a3f079f6c222f6f099a700292 (diff)
parentc077147200edaeb30dd294cbdc62dd02b01a8212 (diff)
downloadrust-152a4e90d19e04ea4714aef0f19c41ad5bc8f9ad.tar.gz
rust-152a4e90d19e04ea4714aef0f19c41ad5bc8f9ad.zip
Auto merge of #117585 - dnbln:feat/move-kw-span, r=cjgillot
Add the `Span` of the `move` keyword to the HIR.

This is required to implement a lint like the one described here: https://github.com/rust-lang/rust-clippy/issues/11721
Diffstat (limited to 'tests')
-rw-r--r--tests/ui-fulldeps/pprust-expr-roundtrip.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui-fulldeps/pprust-expr-roundtrip.rs b/tests/ui-fulldeps/pprust-expr-roundtrip.rs
index 3d6cff00a6d..685a029dcb2 100644
--- a/tests/ui-fulldeps/pprust-expr-roundtrip.rs
+++ b/tests/ui-fulldeps/pprust-expr-roundtrip.rs
@@ -130,7 +130,7 @@ fn iter_exprs(depth: usize, f: &mut dyn FnMut(P<Expr>)) {
                 iter_exprs(depth - 1, &mut |e| {
                     g(ExprKind::Closure(Box::new(Closure {
                         binder: ClosureBinder::NotPresent,
-                        capture_clause: CaptureBy::Value,
+                        capture_clause: CaptureBy::Value { move_kw: DUMMY_SP },
                         constness: Const::No,
                         asyncness: Async::No,
                         movability: Movability::Movable,