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 {
384
384
/// assert_eq!('❤'.escape_unicode().to_string(), "\\u{2764}");
385
385
/// ```
386
386
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
387
- #[ rustc_const_stable( feature = "const_char_escape_unicode" , since = "1.50.0" ) ]
388
387
#[ inline]
389
- pub const fn escape_unicode ( self ) -> EscapeUnicode {
388
+ pub fn escape_unicode ( self ) -> EscapeUnicode {
390
389
let c = self as u32 ;
391
390
392
391
// or-ing 1 ensures that for c==0 the code computes that one
@@ -511,9 +510,8 @@ impl char {
511
510
/// assert_eq!('"'.escape_default().to_string(), "\\\"");
512
511
/// ```
513
512
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
514
- #[ rustc_const_stable( feature = "const_char_escape_default" , since = "1.50.0" ) ]
515
513
#[ inline]
516
- pub const fn escape_default ( self ) -> EscapeDefault {
514
+ pub fn escape_default ( self ) -> EscapeDefault {
517
515
let init_state = match self {
518
516
'\t' => EscapeDefaultState :: Backslash ( 't' ) ,
519
517
'\r' => EscapeDefaultState :: Backslash ( 'r' ) ,
You can’t perform that action at this time.
0 commit comments