- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13.9k
 
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(range_bounds_is_empty)]
This is a tracking issue for the is_empty method on RangeBounds.
Public API
// core::ops
pub trait RangeBounds<T: ?Sized> {
    ...
    fn is_empty(&self) -> bool
    where
        T: PartialOrd,
    {
        ...
    }
}Steps / History
- ACP: 
IntoBounds::clampandRangeBounds::is_emptylibs-team#539 -  Implementation: add 
IntoBounds::intersectandRangeBounds::is_empty#137304 - Final comment period (FCP)1
 - Stabilization PR
 
Unresolved Questions
(Excluded(1), Excluded(2))is considered to be non-empty. This could be a foot gun. Should we add a trait bound to avoid it?
Footnotes
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.