Skip to content

Tracking Issue for const_array_as_mut_slice #133333

Description

@bjoernager

Add the const specifier to <[T; N]>::as_mut_slice.

Public API

impl<T, const N: usize> {
    pub const fn as_mut_slice(&mut self) -> &mut [T];
}

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 Nov 22, 2024
  2. jhpratt commented on Nov 22, 2024

    @jhpratt
    Member

    I've r+'ed the unstable implementation. Given that this is as trivial as it gets, I think it makes sense for this to be stabilized without any further consideration. cc @rust-lang/libs-api for possible FCP

  3. bjoernager commented on Nov 22, 2024

    @bjoernager
    ContributorAuthor

    I'll get around to the stabilisation PR, then. :)

  4. jhpratt commented on Nov 22, 2024

    @jhpratt
    Member

    Up to you, as a stabilization PR is of course simple. I would be surprised if the team didn't want to stabilize it, but it's also not up to me.

  5. bjoernager commented on Nov 22, 2024

    @bjoernager
    ContributorAuthor

    Sure. If anything, it can just sit idle until the (I'm assuming inevitable) FCP has passed – or whatever else happens.

  6. added a commit that references this issue on Nov 23, 2024
  7. added a commit that references this issue on Nov 23, 2024
  8. added a commit that references this issue on Nov 23, 2024
  9. added a commit that references this issue on Nov 23, 2024
  10. thaliaarchi commented on Apr 20, 2025

    @thaliaarchi
    Contributor

    I've opened a PR to stabilize this: #140066.

    We'll need to start an FCP.

  11. added a commit that references this issue on May 24, 2025
  12. added a commit that references this issue on May 24, 2025
  13. added a commit that references this issue on May 24, 2025
  14. added a commit that references this issue on May 25, 2025
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]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions