]> git.lizzy.rs Git - rust.git/commitdiff
Add stability markers for new impls
authorSteven Fackler <sfackler@gmail.com>
Mon, 24 Aug 2015 15:59:45 +0000 (08:59 -0700)
committerSteven Fackler <sfackler@gmail.com>
Mon, 24 Aug 2015 15:59:45 +0000 (08:59 -0700)
src/libstd/net/parser.rs

index da6ee8cfdcfb31e1f6b8577fe1512421f859b95a..480fd63c36a855fa6e1216f2fc530c561fd9649e 100644 (file)
@@ -342,12 +342,14 @@ fn from_str(s: &str) -> Result<SocketAddr, AddrParseError> {
 #[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"