Skip to content

Commit 6a72491

Browse files
committed
Remove const from iterator fns
1 parent bcb1f06 commit 6a72491

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

library/core/src/char/methods.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,8 @@ impl char {
384384
/// assert_eq!('❤'.escape_unicode().to_string(), "\\u{2764}");
385385
/// ```
386386
#[stable(feature = "rust1", since = "1.0.0")]
387-
#[rustc_const_stable(feature = "const_char_escape_unicode", since = "1.50.0")]
388387
#[inline]
389-
pub const fn escape_unicode(self) -> EscapeUnicode {
388+
pub fn escape_unicode(self) -> EscapeUnicode {
390389
let c = self as u32;
391390

392391
// or-ing 1 ensures that for c==0 the code computes that one
@@ -511,9 +510,8 @@ impl char {
511510
/// assert_eq!('"'.escape_default().to_string(), "\\\"");
512511
/// ```
513512
#[stable(feature = "rust1", since = "1.0.0")]
514-
#[rustc_const_stable(feature = "const_char_escape_default", since = "1.50.0")]
515513
#[inline]
516-
pub const fn escape_default(self) -> EscapeDefault {
514+
pub fn escape_default(self) -> EscapeDefault {
517515
let init_state = match self {
518516
'\t' => EscapeDefaultState::Backslash('t'),
519517
'\r' => EscapeDefaultState::Backslash('r'),

0 commit comments

Comments
 (0)