about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/operand.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-15 16:01:36 +0200
committerGitHub <noreply@github.com>2024-09-15 16:01:36 +0200
commitdf3cf91b63a75db9388467b1a182059f8429b158 (patch)
tree7aa4feb10d1395564e899bb82edd6c79fc4e05f1 /compiler/rustc_const_eval/src/interpret/operand.rs
parentdde7d6649e421d8b2f074fd3ddd0d712d3448e65 (diff)
parent65abcc2bccc11b0fcea31a98155f72bf57f1c314 (diff)
downloadrust-df3cf91b63a75db9388467b1a182059f8429b158.tar.gz
rust-df3cf91b63a75db9388467b1a182059f8429b158.zip
Rollup merge of #129439 - okaneco:vec_string_lossy, r=Noratrieb
Implement feature `string_from_utf8_lossy_owned` for lossy conversion from `Vec<u8>` to `String` methods

Accepted ACP: https://github.com/rust-lang/libs-team/issues/116
Tracking issue: #129436

Implement feature for lossily converting from `Vec<u8>` to `String`
- Add `String::from_utf8_lossy_owned`
- Add `FromUtf8Error::into_utf8_lossy`

---
Related to #64727, but unsure whether to mark it "fixed" by this PR.
That issue partly asks for in-place replacement of the original allocation. We fulfill the other half of that request with these functions.

closes #64727
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/operand.rs')
0 files changed, 0 insertions, 0 deletions