Make ascii_change_case_unchecked const

Rebases and makes changes required by the recent merge of #81837.
This commit is contained in:
Ryan Lopopolo 2021-02-23 07:20:13 -08:00
parent 7b41ad1c1f
commit 1ed9dd4179
No known key found for this signature in database
GPG key ID: 717CDD6DC84E7D45

View file

@ -228,7 +228,7 @@ impl u8 {
/// Assumes self is ascii
#[inline]
pub(crate) fn ascii_change_case_unchecked(&self) -> u8 {
pub(crate) const fn ascii_change_case_unchecked(&self) -> u8 {
*self ^ ASCII_CASE_MASK
}