]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/util/elaborate_drops.rs
Rollup merge of #41249 - GuillaumeGomez:rustdoc-render, r=steveklabnik,frewsxcv
[rust.git] / src / librustc_mir / util / elaborate_drops.rs
index ccbc6700d89c1bc3c314d5d3d8acf9a4434cc299..04a1fc891cf1e582e2ef50d2b4271bf8df16bd6c 100644 (file)
@@ -686,7 +686,7 @@ fn new_block<'a>(&mut self,
     }
 
     fn new_temp(&mut self, ty: Ty<'tcx>) -> Local {
-        self.elaborator.patch().new_temp(ty)
+        self.elaborator.patch().new_temp(ty, self.source_info.span)
     }
 
     fn terminator_loc(&mut self, bb: BasicBlock) -> Location {