-
Notifications
You must be signed in to change notification settings - Fork 791
Remove stdlib.rs
#1008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove stdlib.rs
#1008
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,10 +105,8 @@ | |
#[cfg(feature = "std-future")] | ||
use pin_project::pin_project; | ||
|
||
pub(crate) mod stdlib; | ||
|
||
#[cfg(feature = "std-future")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can probably just remove the feature flag for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you want me to remove all the uses of the feature here? I can keep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh actually it looks like enabling |
||
use crate::stdlib::{pin::Pin, task::Context}; | ||
use core::{pin::Pin, task::Context}; | ||
|
||
#[cfg(feature = "std")] | ||
use tracing::{dispatcher, Dispatch}; | ||
|
@@ -274,10 +272,10 @@ impl<T: Sized> Instrument for T {} | |
|
||
#[cfg(feature = "std-future")] | ||
#[cfg_attr(docsrs, doc(cfg(feature = "std-future")))] | ||
impl<T: crate::stdlib::future::Future> crate::stdlib::future::Future for Instrumented<T> { | ||
impl<T: core::future::Future> core::future::Future for Instrumented<T> { | ||
type Output = T::Output; | ||
|
||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> crate::stdlib::task::Poll<Self::Output> { | ||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> core::task::Poll<Self::Output> { | ||
let this = self.project(); | ||
let _enter = this.span.enter(); | ||
this.inner.poll(cx) | ||
|
@@ -445,10 +443,10 @@ impl<T: futures_01::Future> futures_01::Future for WithDispatch<T> { | |
|
||
#[cfg(all(feature = "std-future", feature = "std"))] | ||
#[cfg_attr(docsrs, doc(cfg(all(feature = "std-future", feature = "std"))))] | ||
impl<T: crate::stdlib::future::Future> crate::stdlib::future::Future for WithDispatch<T> { | ||
impl<T: core::future::Future> core::future::Future for WithDispatch<T> { | ||
type Output = T::Output; | ||
|
||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> crate::stdlib::task::Poll<Self::Output> { | ||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> core::task::Poll<Self::Output> { | ||
let this = self.project(); | ||
let dispatch = this.dispatch; | ||
let future = this.inner; | ||
|
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.