@@ -830,22 +830,6 @@ pub struct LocalDecl<'tcx> {
830
830
// FIXME(matthewjasper) Don't store in this in `Body`
831
831
pub local_info : ClearCrossCrate < Box < LocalInfo < ' tcx > > > ,
832
832
833
- /// `true` if this is an internal local.
834
- ///
835
- /// These locals are not based on types in the source code and are only used
836
- /// for a few desugarings at the moment.
837
- ///
838
- /// The generator transformation will sanity check the locals which are live
839
- /// across a suspension point against the type components of the generator
840
- /// which type checking knows are live across a suspension point. We need to
841
- /// flag drop flags to avoid triggering this check as they are introduced
842
- /// outside of type inference.
843
- ///
844
- /// This should be sound because the drop flags are fully algebraic, and
845
- /// therefore don't affect the auto-trait or outlives properties of the
846
- /// generator.
847
- pub internal : bool ,
848
-
849
833
/// The type of this local.
850
834
pub ty : Ty < ' tcx > ,
851
835
@@ -1058,7 +1042,7 @@ impl<'tcx> LocalDecl<'tcx> {
1058
1042
self . source_info . span . desugaring_kind ( ) . is_some ( )
1059
1043
}
1060
1044
1061
- /// Creates a new `LocalDecl` for a temporary: mutable, non-internal .
1045
+ /// Creates a new `LocalDecl` for a temporary, mutable .
1062
1046
#[ inline]
1063
1047
pub fn new ( ty : Ty < ' tcx > , span : Span ) -> Self {
1064
1048
Self :: with_source_info ( ty, SourceInfo :: outermost ( span) )
@@ -1070,20 +1054,12 @@ impl<'tcx> LocalDecl<'tcx> {
1070
1054
LocalDecl {
1071
1055
mutability : Mutability :: Mut ,
1072
1056
local_info : ClearCrossCrate :: Set ( Box :: new ( LocalInfo :: Boring ) ) ,
1073
- internal : false ,
1074
1057
ty,
1075
1058
user_ty : None ,
1076
1059
source_info,
1077
1060
}
1078
1061
}
1079
1062
1080
- /// Converts `self` into same `LocalDecl` except tagged as internal.
1081
- #[ inline]
1082
- pub fn internal ( mut self ) -> Self {
1083
- self . internal = true ;
1084
- self
1085
- }
1086
-
1087
1063
/// Converts `self` into same `LocalDecl` except tagged as immutable.
1088
1064
#[ inline]
1089
1065
pub fn immutable ( mut self ) -> Self {
0 commit comments