Add stability markers for new impls

This commit is contained in:
Steven Fackler 2015-08-24 08:59:45 -07:00
parent b61fddebb0
commit f266f12f30

View File

@ -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"