@@ -44,7 +44,7 @@ pub use poll_fn::{poll_fn, PollFn};
44
44
/// non-Send/Sync as well, and we don't want that.
45
45
///
46
46
/// It also simplifies the HIR lowering of `.await`.
47
- // FIXME(swatinem): This type can be removed when bumping the bootstrap compiler
47
+ # [ cfg_attr ( not ( bootstrap ) , lang = "ResumeTy" ) ]
48
48
#[ doc( hidden) ]
49
49
#[ unstable( feature = "gen_future" , issue = "50547" ) ]
50
50
#[ derive( Debug , Copy , Clone ) ]
@@ -61,7 +61,6 @@ unsafe impl Sync for ResumeTy {}
61
61
/// This function returns a `GenFuture` underneath, but hides it in `impl Trait` to give
62
62
/// better error messages (`impl Future` rather than `GenFuture<[closure.....]>`).
63
63
// This is `const` to avoid extra errors after we recover from `const async fn`
64
- // FIXME(swatinem): This fn can be removed when bumping the bootstrap compiler
65
64
#[ cfg_attr( bootstrap, lang = "from_generator" ) ]
66
65
#[ doc( hidden) ]
67
66
#[ unstable( feature = "gen_future" , issue = "50547" ) ]
@@ -103,8 +102,7 @@ where
103
102
GenFuture ( gen)
104
103
}
105
104
106
- // FIXME(swatinem): This fn can be removed when bumping the bootstrap compiler
107
- #[ cfg_attr( bootstrap, lang = "get_context" ) ]
105
+ #[ lang = "get_context" ]
108
106
#[ doc( hidden) ]
109
107
#[ unstable( feature = "gen_future" , issue = "50547" ) ]
110
108
#[ must_use]
@@ -115,10 +113,6 @@ pub unsafe fn get_context<'a, 'b>(cx: ResumeTy) -> &'a mut Context<'b> {
115
113
unsafe { & mut * cx. 0 . as_ptr ( ) . cast ( ) }
116
114
}
117
115
118
- // FIXME(swatinem): This fn is currently needed to work around shortcomings
119
- // in type and lifetime inference.
120
- // See the comment at the bottom of `LoweringContext::make_async_expr` and
121
- // <https://github.com/rust-lang/rust/issues/104826>.
122
116
#[ cfg_attr( not( bootstrap) , lang = "identity_future" ) ]
123
117
#[ doc( hidden) ]
124
118
#[ unstable( feature = "gen_future" , issue = "50547" ) ]
0 commit comments