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:
parent
70a779cb7d
commit
48dfbeee27
2 changed files with 0 additions and 8 deletions
|
@ -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.
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue