@@ -22,7 +22,7 @@ use syntax_pos::{Span, DUMMY_SP, MultiSpan};
22
22
use syntax:: source_map:: Spanned ;
23
23
use syntax:: ast:: { self , CrateSugar , Ident , Name , NodeId , AsmDialect } ;
24
24
use syntax:: ast:: { Attribute , Label , LitKind , StrStyle , FloatTy , IntTy , UintTy } ;
25
- pub use syntax:: ast:: { Mutability , Constness , Unsafety } ;
25
+ pub use syntax:: ast:: { Mutability , Constness , Unsafety , Movability } ;
26
26
use syntax:: attr:: { InlineAttr , OptimizeAttr } ;
27
27
use syntax:: symbol:: { Symbol , kw} ;
28
28
use syntax:: tokenstream:: TokenStream ;
@@ -1628,8 +1628,8 @@ pub enum ExprKind {
1628
1628
/// The `Span` is the argument block `|...|`.
1629
1629
///
1630
1630
/// This may also be a generator literal or an `async block` as indicated by the
1631
- /// `Option<GeneratorMovability >`.
1632
- Closure ( CaptureClause , P < FnDecl > , BodyId , Span , Option < GeneratorMovability > ) ,
1631
+ /// `Option<Movability >`.
1632
+ Closure ( CaptureClause , P < FnDecl > , BodyId , Span , Option < Movability > ) ,
1633
1633
/// A block (e.g., `'label: { ... }`).
1634
1634
Block ( P < Block > , Option < Label > ) ,
1635
1635
@@ -1802,17 +1802,6 @@ pub struct Destination {
1802
1802
pub target_id : Result < HirId , LoopIdError > ,
1803
1803
}
1804
1804
1805
- /// Whether a generator contains self-references, causing it to be `!Unpin`.
1806
- #[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord , HashStable ,
1807
- RustcEncodable , RustcDecodable , Hash , Debug ) ]
1808
- pub enum GeneratorMovability {
1809
- /// May contain self-references, `!Unpin`.
1810
- Static ,
1811
-
1812
- /// Must not contain self-references, `Unpin`.
1813
- Movable ,
1814
- }
1815
-
1816
1805
/// The yield kind that caused an `ExprKind::Yield`.
1817
1806
#[ derive( Copy , Clone , PartialEq , Eq , Debug , RustcEncodable , RustcDecodable , HashStable ) ]
1818
1807
pub enum YieldSource {
0 commit comments