From 1ed9dd4179ffc3f7759dcb2a74dc362da647008c Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Tue, 23 Feb 2021 07:20:13 -0800 Subject: [PATCH] Make ascii_change_case_unchecked const Rebases and makes changes required by the recent merge of #81837. --- library/core/src/num/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/num/mod.rs b/library/core/src/num/mod.rs index 1e7d75f9c265..6bacaccd24ac 100644 --- a/library/core/src/num/mod.rs +++ b/library/core/src/num/mod.rs @@ -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 }