Skip to content

Commit 3f909b7

Browse files
authored
Unrolled build for #155528
Rollup merge of #155528 - Jules-Bertholet:const-is-control, r=folkertdev const-stabilize `char::is_control()`
2 parents 818811b + cd921d9 commit 3f909b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

library/core/src/char/methods.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,8 +1050,9 @@ impl char {
10501050
/// ```
10511051
#[must_use]
10521052
#[stable(feature = "rust1", since = "1.0.0")]
1053+
#[rustc_const_stable(feature = "const_is_control", since = "CURRENT_RUSTC_VERSION")]
10531054
#[inline]
1054-
pub fn is_control(self) -> bool {
1055+
pub const fn is_control(self) -> bool {
10551056
// According to
10561057
// https://www.unicode.org/policies/stability_policy.html#Property_Value,
10571058
// the set of codepoints in `Cc` will never change.

0 commit comments

Comments
 (0)