@@ -448,8 +448,6 @@ impl char {
448
448
/// In both of these examples, 'ß' takes two bytes to encode.
449
449
///
450
450
/// ```
451
- /// #![feature(unicode)]
452
- ///
453
451
/// let mut b = [0; 2];
454
452
///
455
453
/// let result = 'ß'.encode_utf8(&mut b);
@@ -474,9 +472,7 @@ impl char {
474
472
///
475
473
/// assert!(result.is_err());
476
474
/// ```
477
- #[ unstable( feature = "unicode" ,
478
- reason = "pending decision about Iterator/Writer/Reader" ,
479
- issue = "27784" ) ]
475
+ #[ stable( feature = "unicode_encode_char" , since = "1.15.0" ) ]
480
476
#[ inline]
481
477
pub fn encode_utf8 ( self , dst : & mut [ u8 ] ) -> & mut str {
482
478
C :: encode_utf8 ( self , dst)
@@ -495,8 +491,6 @@ impl char {
495
491
/// In both of these examples, '𝕊' takes two `u16`s to encode.
496
492
///
497
493
/// ```
498
- /// #![feature(unicode)]
499
- ///
500
494
/// let mut b = [0; 2];
501
495
///
502
496
/// let result = '𝕊'.encode_utf16(&mut b);
@@ -519,9 +513,7 @@ impl char {
519
513
///
520
514
/// assert!(result.is_err());
521
515
/// ```
522
- #[ unstable( feature = "unicode" ,
523
- reason = "pending decision about Iterator/Writer/Reader" ,
524
- issue = "27784" ) ]
516
+ #[ stable( feature = "unicode_encode_char" , since = "1.15.0" ) ]
525
517
#[ inline]
526
518
pub fn encode_utf16 ( self , dst : & mut [ u16 ] ) -> & mut [ u16 ] {
527
519
C :: encode_utf16 ( self , dst)
0 commit comments