about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-07 23:30:14 +0200
committerGitHub <noreply@github.com>2024-09-07 23:30:14 +0200
commitc139dc62812313bf97483a1160594bfd25ffbd1c (patch)
tree5b92b7eb0ccb87e21bb6b3103743e9282cb6690a /compiler/rustc_pattern_analysis/src
parent04b4523efcf0790458740f1c59f7c2d248be7c9c (diff)
parenta8a7fd418e217f6b0e66eaa81c3139efdb9174cc (diff)
downloadrust-c139dc62812313bf97483a1160594bfd25ffbd1c.tar.gz
rust-c139dc62812313bf97483a1160594bfd25ffbd1c.zip
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.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions