]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/hair/mod.rs
For diagnostics, set spans of drops of temps to be that of the statement's terminatin...
[rust.git] / src / librustc_mir / hair / mod.rs
index 8a24851de8149f2bcb301b9772f76bf5c6e69d6a..fd1ddcc1cc6cabaab0d967e8e192273dc4ee7503 100644 (file)
@@ -71,10 +71,14 @@ pub enum StmtRef<'tcx> {
     Mirror(Box<Stmt<'tcx>>),
 }
 
+#[derive(Clone, Debug)]
+pub struct StatementSpan(pub Span);
+
 #[derive(Clone, Debug)]
 pub struct Stmt<'tcx> {
     pub kind: StmtKind<'tcx>,
     pub opt_destruction_scope: Option<region::Scope>,
+    pub span: StatementSpan,
 }
 
 #[derive(Clone, Debug)]