Skip to content

Commit

Permalink
Bump version to 1.49.0
Browse files Browse the repository at this point in the history
Due to the recent release of 1.47.0, this PR will be stabilized in 1.49.0 instead of 1.48.0.
  • Loading branch information
CDirkx authored Oct 16, 2020
1 parent ce1d5ed commit 5e80c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/task/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ impl<T> Poll<T> {

/// Returns `true` if this is `Poll::Ready`
#[inline]
#[rustc_const_stable(feature = "const_poll", since = "1.48.0")]
#[rustc_const_stable(feature = "const_poll", since = "1.49.0")]
#[stable(feature = "futures_api", since = "1.36.0")]
pub const fn is_ready(&self) -> bool {
matches!(*self, Poll::Ready(_))
}

/// Returns `true` if this is `Poll::Pending`
#[inline]
#[rustc_const_stable(feature = "const_poll", since = "1.48.0")]
#[rustc_const_stable(feature = "const_poll", since = "1.49.0")]
#[stable(feature = "futures_api", since = "1.36.0")]
pub const fn is_pending(&self) -> bool {
!self.is_ready()
Expand Down

0 comments on commit 5e80c65

Please sign in to comment.