Skip to content

Commit

Permalink
Add stability markers for new impls
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Aug 24, 2015
1 parent b61fdde commit f266f12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstd/net/parser.rs
Expand Up @@ -342,12 +342,14 @@ impl FromStr for SocketAddr {
#[derive(Debug, Clone, PartialEq)]
pub struct AddrParseError(());

#[stable(feature = "addr_parse_error_error", since = "1.4.0")]
impl fmt::Display for AddrParseError {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.write_str(self.description())
}
}

#[stable(feature = "addr_parse_error_error", since = "1.4.0")]
impl Error for AddrParseError {
fn description(&self) -> &str {
"invalid IP address syntax"
Expand Down

0 comments on commit f266f12

Please sign in to comment.