about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-25 14:33:55 +0100
committerGitHub <noreply@github.com>2021-02-25 14:33:55 +0100
commitf891af9de529f7df8d094e130dd6f35fe07b4d78 (patch)
tree4678e5b7465fef9e533d85dc140dc0800d3d3953 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentc5629131fa23a07a47e9b6a25f687ac6791a843f (diff)
parent1ed9dd4179ffc3f7759dcb2a74dc362da647008c (diff)
downloadrust-f891af9de529f7df8d094e130dd6f35fe07b4d78.tar.gz
rust-f891af9de529f7df8d094e130dd6f35fe07b4d78.zip
Rollup merge of #82078 - lopopolo:char-u8-const-fn, r=m-ou-se
Make char and u8 methods const

char methods `len_utf8`, `len_utf16`, `to_ascii_lowercase`, `eq_ignore_ascii_case` can be made const.

`u8` methods `to_ascii_lowercase`, `to_ascii_uppercase` are required to be const as well.

`u8::eq_ignore_ascii_case` was additionally made const.

Rebase of https://github.com/rust-lang/rust/pull/79549 originally authored by ``@YenForYang.`` Changes from that PR:

- Squashed all commits from #79549.
- rebased to latest upstream master.
- Removed const attributes for `char::escape_unicode` and `char::escape_default`.
- Updated `since` attributes for `const` stabilization to 1.52.0.

cc ``@m-ou-se.``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions