@@ -464,6 +464,7 @@ impl char {
464464 without modifying the original"]
465465 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
466466 #[ inline]
467+ #[ ferrocene:: prevalidated]
467468 pub fn escape_unicode ( self ) -> EscapeUnicode {
468469 EscapeUnicode :: new ( self )
469470 }
@@ -587,6 +588,7 @@ impl char {
587588 without modifying the original"]
588589 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
589590 #[ inline]
591+ #[ ferrocene:: prevalidated]
590592 pub fn escape_default ( self ) -> EscapeDefault {
591593 match self {
592594 '\t' => EscapeDefault :: backslash ( ascii:: Char :: SmallT ) ,
@@ -998,6 +1000,7 @@ impl char {
9981000 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
9991001 #[ rustc_const_stable( feature = "const_char_classify" , since = "1.87.0" ) ]
10001002 #[ inline]
1003+ #[ ferrocene:: prevalidated]
10011004 pub const fn is_whitespace ( self ) -> bool {
10021005 match self {
10031006 ' ' | '\x09' ..='\x0d' => true ,
@@ -1577,6 +1580,7 @@ impl char {
15771580 #[ must_use]
15781581 #[ unstable( feature = "ascii_char" , issue = "110998" ) ]
15791582 #[ inline]
1583+ #[ ferrocene:: prevalidated]
15801584 pub const fn as_ascii ( & self ) -> Option < ascii:: Char > {
15811585 if self . is_ascii ( ) {
15821586 // SAFETY: Just checked that this is ASCII.
@@ -2118,6 +2122,7 @@ impl char {
21182122 #[ stable( feature = "ascii_ctype_on_intrinsics" , since = "1.24.0" ) ]
21192123 #[ rustc_const_stable( feature = "const_ascii_ctype_on_intrinsics" , since = "1.47.0" ) ]
21202124 #[ inline]
2125+ #[ ferrocene:: prevalidated]
21212126 pub const fn is_ascii_whitespace ( & self ) -> bool {
21222127 matches ! ( * self , '\t' | '\n' | '\x0C' | '\r' | ' ' )
21232128 }
0 commit comments