@@ -22,7 +22,7 @@ use syntax_pos::{Span, DUMMY_SP, MultiSpan};
2222use syntax:: source_map:: Spanned ;
2323use syntax:: ast:: { self , CrateSugar , Ident , Name , NodeId , AsmDialect } ;
2424use 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 } ;
2626use syntax:: attr:: { InlineAttr , OptimizeAttr } ;
2727use syntax:: symbol:: { Symbol , kw} ;
2828use syntax:: tokenstream:: TokenStream ;
@@ -1628,8 +1628,8 @@ pub enum ExprKind {
16281628 /// The `Span` is the argument block `|...|`.
16291629 ///
16301630 /// 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 > ) ,
16331633 /// A block (e.g., `'label: { ... }`).
16341634 Block ( P < Block > , Option < Label > ) ,
16351635
@@ -1802,17 +1802,6 @@ pub struct Destination {
18021802 pub target_id : Result < HirId , LoopIdError > ,
18031803}
18041804
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-
18161805/// The yield kind that caused an `ExprKind::Yield`.
18171806#[ derive( Copy , Clone , PartialEq , Eq , Debug , RustcEncodable , RustcDecodable , HashStable ) ]
18181807pub enum YieldSource {
0 commit comments