]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_mir/build/expr/as_operand.rs
New upstream version 1.20.0+dfsg1
[rustc.git] / src / librustc_mir / build / expr / as_operand.rs
index 5178963179d6f80d1bf90e33e6c244ddfcc6bb00..4679e0bb0a5c31fde0e632057a444e9a4e5ccf4f 100644 (file)
@@ -56,6 +56,8 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
         let this = self;
 
         if let ExprKind::Scope { extent, value } = expr.kind {
+            let source_info = this.source_info(expr.span);
+            let extent = (extent, source_info);
             return this.in_scope(extent, block, |this| {
                 this.as_operand(block, scope, value)
             });