File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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' ) ,
You can’t perform that action at this time.
0 commit comments