about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2024-01-27 18:59:20 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2024-01-28 02:04:39 +0300
commitb2b5b91bfbe5b39d17be3a14108fe7823627e0d8 (patch)
treeb42c1482a65af17ba83848c02f58b14ceac8779a /compiler/rustc_ast_lowering/src
parent5f8030dcc9eaa68975279134d76c4a1eb941081b (diff)
downloadrust-b2b5b91bfbe5b39d17be3a14108fe7823627e0d8.tar.gz
rust-b2b5b91bfbe5b39d17be3a14108fe7823627e0d8.zip
hir: Use `InferArg` in `ArrayLen::Infer`
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index ee1f5d5bd7a..3621844efc8 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -2305,7 +2305,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
         match c.value.kind {
             ExprKind::Underscore => {
                 if self.tcx.features().generic_arg_infer {
-                    hir::ArrayLen::Infer(self.lower_node_id(c.id), self.lower_span(c.value.span))
+                    hir::ArrayLen::Infer(hir::InferArg {
+                        hir_id: self.lower_node_id(c.id),
+                        span: self.lower_span(c.value.span),
+                    })
                 } else {
                     feature_err(
                         &self.tcx.sess,