File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1514,7 +1514,8 @@ impl ParseIntError {
1514
1514
#[ unstable( feature = "int_error_internals" ,
1515
1515
reason = "available through Error trait and this method should \
1516
1516
not be exposed publicly") ]
1517
- pub fn description ( & self ) -> & str {
1517
+ #[ doc( hidden) ]
1518
+ pub fn __description ( & self ) -> & str {
1518
1519
match self . kind {
1519
1520
IntErrorKind :: Empty => "cannot parse integer from empty string" ,
1520
1521
IntErrorKind :: InvalidDigit => "invalid digit found in string" ,
@@ -1527,7 +1528,7 @@ impl ParseIntError {
1527
1528
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1528
1529
impl fmt:: Display for ParseIntError {
1529
1530
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1530
- self . description ( ) . fmt ( f)
1531
+ self . __description ( ) . fmt ( f)
1531
1532
}
1532
1533
}
1533
1534
@@ -1544,6 +1545,7 @@ pub struct ParseFloatError {
1544
1545
#[ derive( Debug , Clone , PartialEq ) ]
1545
1546
#[ unstable( feature = "float_error_internals" ,
1546
1547
reason = "should not be exposed publicly" ) ]
1548
+ #[ doc( hidden) ]
1547
1549
pub enum FloatErrorKind {
1548
1550
Empty ,
1549
1551
Invalid ,
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ impl Error for str::Utf8Error {
140
140
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
141
141
impl Error for num:: ParseIntError {
142
142
fn description ( & self ) -> & str {
143
- self . description ( )
143
+ self . __description ( )
144
144
}
145
145
}
146
146
You can’t perform that action at this time.
0 commit comments