We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 818811b + cd921d9 commit 3f909b7Copy full SHA for 3f909b7
1 file changed
library/core/src/char/methods.rs
@@ -1050,8 +1050,9 @@ impl char {
1050
/// ```
1051
#[must_use]
1052
#[stable(feature = "rust1", since = "1.0.0")]
1053
+ #[rustc_const_stable(feature = "const_is_control", since = "CURRENT_RUSTC_VERSION")]
1054
#[inline]
- pub fn is_control(self) -> bool {
1055
+ pub const fn is_control(self) -> bool {
1056
// According to
1057
// https://www.unicode.org/policies/stability_policy.html#Property_Value,
1058
// the set of codepoints in `Cc` will never change.
0 commit comments