Skip to content
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

Tracking Issue for const RangeBounds and const RangeX::contains #108082

Open
4 tasks
onestacked opened this issue Feb 15, 2023 · 2 comments
Open
4 tasks

Tracking Issue for const RangeBounds and const RangeX::contains #108082

onestacked opened this issue Feb 15, 2023 · 2 comments
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. F-const_trait_impl `#![feature(const_trait_impl)]` S-tracking-blocked Status: This tracking issue is blocked on another tracking issue T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@onestacked
Copy link
Contributor

onestacked commented Feb 15, 2023

Feature gate: #![feature(const_range_bounds)]

This is a tracking issue for making RangeBounds #[const_trait], implementing it for all Range types and allowing range.contains() and associated functions to be called form a const context.

Public API

// core::ops::RangeInclusive
impl<Idx> RangeInclusive<Idx> {
   pub const fn into_inner(self) -> (Idx, Idx)
}

Steps / History

Unresolved Questions

  • None yet.

Footnotes

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

@onestacked onestacked added C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Feb 15, 2023
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Feb 16, 2023
…lnay

Constify `RangeBounds`, `RangeX::contains` and `RangeX::is_empty` (where applicable).

cc `@fee1-dead`

`@rustbot` label +T-libs-api -T-libs

Tracking issue: rust-lang#108082
@fee1-dead fee1-dead added the F-const_trait_impl `#![feature(const_trait_impl)]` label Mar 24, 2023
@Dylan-DPC Dylan-DPC added the S-tracking-blocked Status: This tracking issue is blocked on another tracking issue label Mar 7, 2024
@RalfJung
Copy link
Member

RalfJung commented Sep 8, 2024

This got mostly removed by #110393, there's just one method left... is that even worth keeping?

@onestacked onestacked closed this as not planned Won't fix, can't repro, duplicate, stale Sep 8, 2024
@RalfJung
Copy link
Member

RalfJung commented Sep 8, 2024 via email

@oli-obk oli-obk reopened this Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: A tracking issue for an RFC or an unstable feature. F-const_trait_impl `#![feature(const_trait_impl)]` S-tracking-blocked Status: This tracking issue is blocked on another tracking issue T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants