File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1692,6 +1692,13 @@ impl fmt::Debug for ParseError {
1692
1692
}
1693
1693
}
1694
1694
1695
+ #[ stable( feature = "str_parse_error2" , since = "1.8.0" ) ]
1696
+ impl fmt:: Display for ParseError {
1697
+ fn fmt ( & self , _: & mut fmt:: Formatter ) -> fmt:: Result {
1698
+ match * self { }
1699
+ }
1700
+ }
1701
+
1695
1702
#[ stable( feature = "str_parse_error" , since = "1.5.0" ) ]
1696
1703
impl PartialEq for ParseError {
1697
1704
fn eq ( & self , _: & ParseError ) -> bool {
Original file line number Diff line number Diff line change @@ -182,6 +182,13 @@ impl Error for string::FromUtf16Error {
182
182
}
183
183
}
184
184
185
+ #[ stable( feature = "str_parse_error2" , since = "1.8.0" ) ]
186
+ impl Error for string:: ParseError {
187
+ fn description ( & self ) -> & str {
188
+ "parse error"
189
+ }
190
+ }
191
+
185
192
// copied from any.rs
186
193
impl Error + ' static {
187
194
/// Returns true if the boxed type is the same as `T`
You can’t perform that action at this time.
0 commit comments