about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/block.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2025-07-28 01:00:48 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2025-07-28 01:00:48 +0000
commit7db72f82cce7be6e905651fea58881fc66f13a9b (patch)
treeec7101294e542d9eebbae4af47c79ccabb76350e /compiler/rustc_ast_lowering/src/block.rs
parentb56aaec52bc0fa35591a872fb4aac81f606e265c (diff)
downloadrust-7db72f82cce7be6e905651fea58881fc66f13a9b.tar.gz
rust-7db72f82cce7be6e905651fea58881fc66f13a9b.zip
Complete span lowering.
Diffstat (limited to 'compiler/rustc_ast_lowering/src/block.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/block.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/block.rs b/compiler/rustc_ast_lowering/src/block.rs
index c3222b79e55..2cc07694afb 100644
--- a/compiler/rustc_ast_lowering/src/block.rs
+++ b/compiler/rustc_ast_lowering/src/block.rs
@@ -95,7 +95,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
 
     fn lower_local(&mut self, l: &Local) -> &'hir hir::LetStmt<'hir> {
         // Let statements are allowed to have impl trait in bindings.
-        let super_ = l.super_;
+        let super_ = l.super_.map(|span| self.lower_span(span));
         let ty = l.ty.as_ref().map(|t| {
             self.lower_ty(t, self.impl_trait_in_bindings_ctxt(ImplTraitPosition::Variable))
         });