You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking issue for the Peekable::is_empty function #32111
B-unstableBlocker: Implemented in the nightly compiler and unstable.T-libs-api[DEPRECATED; DO NOT USE]final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
B-unstableBlocker: Implemented in the nightly compiler and unstable.T-libs-api[DEPRECATED; DO NOT USE]final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
Activity
oyvindln commentedon Apr 23, 2016
What is blocking this from being stabilised?
sfackler commentedon Apr 23, 2016
Nothing in particular other than that we haven't gotten to it yet.
alexcrichton commentedon Apr 29, 2016
🔔 This issue is now entering its cycle-long final comment period for deprecation 🔔
The libs team discussed this and concluded:
is_*query taking&mut selfand mutate state.is_emptymethods in the sense that the signature is different and there is no correspondinglen.peek().is_none()which is also very easy to call.alexcrichton commentedon May 17, 2016
The libs team discussed this at triage yesterday and the decision was to deprecate
std: Stabilize APIs for the 1.10 release
std: Stabilize APIs for the 1.10 release
Ms2ger commentedon Jun 2, 2016
.peek().is_none()is a positively horrible way of expressing the "is empty" predicate. Can we revert this, please?