|
15 | 15 | use hir::def::CtorKind; |
16 | 16 | use hir::def_id::DefId; |
17 | 17 | use hir::{self, HirId, InlineAsm}; |
18 | | -use middle::region; |
19 | 18 | use mir::interpret::{ConstValue, EvalErrorKind, Scalar}; |
20 | 19 | use mir::visit::MirVisitable; |
21 | 20 | use rustc_apfloat::ieee::{Double, Single}; |
@@ -1789,10 +1788,6 @@ pub enum StatementKind<'tcx> { |
1789 | 1788 | /// for more details. |
1790 | 1789 | EscapeToRaw(Operand<'tcx>), |
1791 | 1790 |
|
1792 | | - /// Mark one terminating point of a region scope (i.e. static region). |
1793 | | - /// (The starting point(s) arise implicitly from borrows.) |
1794 | | - EndRegion(region::Scope), |
1795 | | - |
1796 | 1791 | /// Encodes a user's type ascription. These need to be preserved |
1797 | 1792 | /// intact so that NLL can respect them. For example: |
1798 | 1793 | /// |
@@ -1846,8 +1841,6 @@ impl<'tcx> Debug for Statement<'tcx> { |
1846 | 1841 | match self.kind { |
1847 | 1842 | Assign(ref place, ref rv) => write!(fmt, "{:?} = {:?}", place, rv), |
1848 | 1843 | FakeRead(ref cause, ref place) => write!(fmt, "FakeRead({:?}, {:?})", cause, place), |
1849 | | - // (reuse lifetime rendering policy from ppaux.) |
1850 | | - EndRegion(ref ce) => write!(fmt, "EndRegion({})", ty::ReScope(*ce)), |
1851 | 1844 | Retag { fn_entry, ref place } => |
1852 | 1845 | write!(fmt, "Retag({}{:?})", if fn_entry { "[fn entry] " } else { "" }, place), |
1853 | 1846 | EscapeToRaw(ref place) => write!(fmt, "EscapeToRaw({:?})", place), |
@@ -3028,7 +3021,6 @@ EnumTypeFoldableImpl! { |
3028 | 3021 | (StatementKind::InlineAsm) { asm, outputs, inputs }, |
3029 | 3022 | (StatementKind::Retag) { fn_entry, place }, |
3030 | 3023 | (StatementKind::EscapeToRaw)(place), |
3031 | | - (StatementKind::EndRegion)(a), |
3032 | 3024 | (StatementKind::AscribeUserType)(a, v, b), |
3033 | 3025 | (StatementKind::Nop), |
3034 | 3026 | } |
|
0 commit comments