Skip to content

Commit 7ea3932

Browse files
authored
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`.
2 parents 711b0e3 + 71480f6 commit 7ea3932

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

core/src/future/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,3 @@ pub unsafe fn get_context<'a, 'b>(cx: ResumeTy) -> &'a mut Context<'b> {
6666
// that fulfills all the requirements for a mutable reference.
6767
unsafe { &mut *cx.0.as_ptr().cast() }
6868
}
69-
70-
#[doc(hidden)]
71-
#[unstable(feature = "gen_future", issue = "50547")]
72-
#[inline]
73-
pub const fn identity_future<O, Fut: Future<Output = O>>(f: Fut) -> Fut {
74-
f
75-
}

0 commit comments

Comments
 (0)