Skip to content

Tracking Issue for range_bounds_is_empty #137300

Open

Description

@pitaj

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

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    T-libs-api[DEPRECATED; DO NOT USE]
    on Feb 20, 2025
  2. added 2 commits that reference this issue on Feb 27, 2025
  3. scottmcm commented on Feb 27, 2025

    @scottmcm
    Member

    This feels like it really wants #[final] so that unsafe code can actually use it.

  4. added a commit that references this issue on Feb 27, 2025
  5. pitaj commented on Feb 27, 2025

    @pitaj
    ContributorAuthor

    Does #[final] allow types in the same crate to still specialize? Would be kinda a shame if the infinite range types couldn't just return true.

  6. added a commit that references this issue on Feb 28, 2025
  7. added 2 commits that reference this issue on Mar 11, 2025
  8. judnich commented on Jul 4, 2025

    @judnich
  9. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-design-concernsStatus: There are blocking design concerns.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions