rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.24k stars 12.71k forks source link

Tracking Issue for const_str_as_mut #130086

Closed RalfJung closed 1 month ago

RalfJung commented 1 month ago

Feature gate: #![feature(const_str_as_mut)]

This is a tracking issue for const mutable str accessors:

impl str {
    pub const unsafe fn as_bytes_mut(&mut self) -> &mut [u8];
    pub const fn as_mut_ptr(&mut self) -> *mut u8;
}

Steps / History

Unresolved Questions

dtolnay commented 1 month ago

@rfcbot fcp merge

const for these already-stable functions:

rfcbot commented 1 month ago

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.

rfcbot commented 1 month ago

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

rfcbot commented 1 month ago

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.