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-23 06:45:33 +0200
committerGitHub <noreply@github.com>2024-09-23 06:45:33 +0200
commitc1ccdb7d0c434d4daa20004c5beb6050613084b5 (patch)
tree19886d2d14b64107f5a95d88af237cfaf17f1202 /compiler/rustc_pattern_analysis/src
parent23393de7934a5b8f5d8114f63c757303b1416c5d (diff)
parentf48c5ec235adb709ab28e03974286dde69369d59 (diff)
downloadrust-c1ccdb7d0c434d4daa20004c5beb6050613084b5.tar.gz
rust-c1ccdb7d0c434d4daa20004c5beb6050613084b5.zip
Rollup merge of #130659 - bjoernager:const-char-encode-utf16, r=dtolnay
Support `char::encode_utf16` in const scenarios.

Relevant tracking issue: #130660

The method `char::encode_utf16` should be marked "const" to allow compile-time conversions.

This PR additionally rewrites the `encode_utf16_raw` function for better readability whilst also reducing the amount of unsafe code.

try-job: x86_64-msvc
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions