Skip to content

Tracking Issue for const_make_ascii #130698

Closed

Description

@bjoernager

Feature gate: #![feature(const_make_ascii)]

This is a tracking issue for marking the make_ascii_uppercase and make_ascii_lowercase methods in char, u8, [u8], and str as "const."

Public API

impl char {
    pub const fn make_ascii_uppercase(&mut self);

    pub const fn make_ascii_lowercase(&mut self);
}

impl u8 {
    pub const fn make_ascii_uppercase(&mut self);

    pub const fn make_ascii_lowercase(&mut self);
}

impl [u8] {
    pub const fn make_ascii_uppercase(&mut self);

    pub const fn make_ascii_lowercase(&mut self);
}

impl str {
    pub const fn make_ascii_uppercase(&mut self);

    pub const fn make_ascii_lowercase(&mut self);
}

Steps / History

Unresolved Questions

  • None yet.

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 Sep 22, 2024
  2. dtolnay commented on Sep 22, 2024

    @dtolnay
    Member

    @rust-lang/libs-api:
    @rfcbot fcp merge

    to_ascii_uppercase/to_ascii_lowercase have been stable in const since 1.52. make_ascii_uppercase/make_ascii_lowercase are unblocked now by the stabilization of #57349.

  3. rfcbot commented on Sep 22, 2024

    @rfcbot

    Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members:

    No concerns currently listed.

    Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

    See this document for info about what commands tagged team members can give me.

  4. added
    proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
    disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.
    on Sep 22, 2024
  5. added a commit that references this issue on Sep 22, 2024
  6. okaneco commented on Sep 22, 2024

    @okaneco
    Contributor

    Can the u8 methods be included in this?
    https://doc.rust-lang.org/stable/std/primitive.u8.html#method.make_ascii_lowercase
    https://doc.rust-lang.org/stable/std/primitive.u8.html#method.make_ascii_uppercase

    Similarly const stable u8::to_ascii_uppercase/u8::to_ascii_lowercase since 1.52.

  7. bjoernager commented on Sep 22, 2024

    @bjoernager
    ContributorAuthor

    Yes, that sounds like a good idea. I'll try adding another PR later.

  8. changed the title [-]Tracking Issue for `const_char_make_ascii`[/-] [+]Tracking Issue for `const_make_ascii`[/+] on Sep 22, 2024
  9. added a commit that references this issue on Sep 22, 2024
  10. added a commit that references this issue on Sep 23, 2024
  11. added a commit that references this issue on Sep 23, 2024
  12. added a commit that references this issue on Sep 23, 2024
  13. added a commit that references this issue on Sep 24, 2024
  14. added
    final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
    and removed
    proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
    on Oct 1, 2024
  15. rfcbot commented on Oct 1, 2024

    @rfcbot

    🔔 This is now entering its final comment period, as per the review above. 🔔

  16. bjoernager commented on Oct 11, 2024

    @bjoernager
    ContributorAuthor

    #131496 stabilises this.

  17. added and removed
    final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
    on Oct 11, 2024
  18. rfcbot commented on Oct 11, 2024

    @rfcbot

    The final comment period, with a disposition to merge, as per the review above, is now complete.

    As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

    This will be merged soon.

  19. added 2 commits that reference this issue on Oct 14, 2024
    bc0efe6
    9716a42
  20. added a commit that references this issue on Oct 15, 2024
    f863392
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 RFCT-libs-api[DEPRECATED; DO NOT USE]disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions