about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-28 08:36:53 +0200
committerGitHub <noreply@github.com>2025-07-28 08:36:53 +0200
commite36b844b4e433e1e8a208f6be18934b9ae8b3b71 (patch)
treebecd65ec26c85f294927f9425cf6fb56dafd2dfc /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent21120e297c3d2db6a1f28e1a8798777a52f4fee2 (diff)
parent7f7d343400de843c12f880b02ea1a7b22ccc7379 (diff)
downloadrust-e36b844b4e433e1e8a208f6be18934b9ae8b3b71.tar.gz
rust-e36b844b4e433e1e8a208f6be18934b9ae8b3b71.zip
Rollup merge of #144472 - okaneco:char_bound, r=Mark-Simulacrum
str: Mark unstable `round_char_boundary` feature functions as const

Mark `floor_char_boundary`, `ceil_char_boundary` const
Simplify the implementations, reducing the number of arithmetic operations

It seems unnecessary to do the lower/upper bounds calculations and extra slicing when we can jump straight to inspecting the bytes, assuming the underlying data is valid UTF-8.

Tracking issue https://github.com/rust-lang/rust/issues/93743
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions