mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Rollup merge of #111315 - Swatinem:rm-identitiy-future, r=Mark-Simulacrum
Remove `identity_future` from stdlib This function/lang_item was introduced in #104321 as a temporary workaround of future lowering. The usage and need for it went away in #104833. After a bootstrap update, the function itself can be removed from `std`.
This commit is contained in:
commit
28b9696a9e
@ -66,10 +66,3 @@ pub unsafe fn get_context<'a, 'b>(cx: ResumeTy) -> &'a mut Context<'b> {
|
|||||||
// that fulfills all the requirements for a mutable reference.
|
// that fulfills all the requirements for a mutable reference.
|
||||||
unsafe { &mut *cx.0.as_ptr().cast() }
|
unsafe { &mut *cx.0.as_ptr().cast() }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[unstable(feature = "gen_future", issue = "50547")]
|
|
||||||
#[inline]
|
|
||||||
pub const fn identity_future<O, Fut: Future<Output = O>>(f: Fut) -> Fut {
|
|
||||||
f
|
|
||||||
}
|
|
||||||
|
@ -379,7 +379,6 @@ language_item_table! {
|
|||||||
// FIXME(swatinem): the following lang items are used for async lowering and
|
// FIXME(swatinem): the following lang items are used for async lowering and
|
||||||
// should become obsolete eventually.
|
// should become obsolete eventually.
|
||||||
ResumeTy, ResumeTy, resume_ty, Target::Struct, GenericRequirement::None;
|
ResumeTy, ResumeTy, resume_ty, Target::Struct, GenericRequirement::None;
|
||||||
IdentityFuture, identity_future, identity_future_fn, Target::Fn, GenericRequirement::None;
|
|
||||||
GetContext, get_context, get_context_fn, Target::Fn, GenericRequirement::None;
|
GetContext, get_context, get_context_fn, Target::Fn, GenericRequirement::None;
|
||||||
|
|
||||||
Context, Context, context, Target::Struct, GenericRequirement::None;
|
Context, Context, context, Target::Struct, GenericRequirement::None;
|
||||||
|
Loading…
Reference in New Issue
Block a user