os-rust/library/core
Matthias Krüger c139dc6281
Rollup merge of #130046 - RalfJung:const_str_as_mut, r=dtolnay
str: make as_mut_ptr and as_bytes_mut unstably const

`@rust-lang/libs-api` the corresponding non-mutable methods are already const fn, so this seems pretty trivial. I hope this is small enough that it does not need an ACP? :)

I would like to get these stabilized ASAP because I want to avoid people doing `s.as_ptr().cast_mut()`, which is UB if they ever write to it, but is already const-stable.

TODO: create a tracking issue.
2024-09-07 23:30:14 +02:00
..
benches Improve isqrt tests and add benchmarks 2024-08-28 23:06:54 -04:00
src Rollup merge of #130046 - RalfJung:const_str_as_mut, r=dtolnay 2024-09-07 23:30:14 +02:00
tests Stabilize waker_getters 2024-09-02 18:51:59 -06:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00