diff options
| author | Gabriel Bjørnager Jensen <gabriel@achernar.io> | 2024-09-22 19:54:35 +0200 |
|---|---|---|
| committer | Gabriel Bjørnager Jensen <gabriel@achernar.io> | 2024-09-22 19:54:35 +0200 |
| commit | 2daf076fd8345ea2db1a81f56e8182e5f4e94ce3 (patch) | |
| tree | 7695264bfdfa6c61578b1e356298b9f723f3f086 /library/core/src/char | |
| parent | be9b3b459a0012fc83078ec4e5302b6153ceeeba (diff) | |
| download | rust-2daf076fd8345ea2db1a81f56e8182e5f4e94ce3.tar.gz rust-2daf076fd8345ea2db1a81f56e8182e5f4e94ce3.zip | |
Mark 'make_ascii_uppercase' and 'make_ascii_lowercase' in 'u8' as const; Rename 'const_char_make_ascii' feature gate to 'const_make_ascii';
Diffstat (limited to 'library/core/src/char')
| -rw-r--r-- | library/core/src/char/methods.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs index 9d9a3b5132c..2a0acfeacdf 100644 --- a/library/core/src/char/methods.rs +++ b/library/core/src/char/methods.rs @@ -1277,7 +1277,7 @@ impl char { /// /// [`to_ascii_uppercase()`]: #method.to_ascii_uppercase #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] - #[rustc_const_unstable(feature = "const_char_make_ascii", issue = "130698")] + #[rustc_const_unstable(feature = "const_make_ascii", issue = "130698")] #[inline] pub const fn make_ascii_uppercase(&mut self) { *self = self.to_ascii_uppercase(); @@ -1303,7 +1303,7 @@ impl char { /// /// [`to_ascii_lowercase()`]: #method.to_ascii_lowercase #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")] - #[rustc_const_unstable(feature = "const_char_make_ascii", issue = "130698")] + #[rustc_const_unstable(feature = "const_make_ascii", issue = "130698")] #[inline] pub const fn make_ascii_lowercase(&mut self) { *self = self.to_ascii_lowercase(); |
