about summary refs log tree commit diff
path: root/library/std/src/net/tcp.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2022-04-07 21:20:32 -0400
committerJacob Pratt <jacob@jhpratt.dev>2022-04-14 01:33:13 -0400
commit4fbe73e0b79afb9e2b352438bac743104f0d2ba6 (patch)
tree84f8597c04edc4113e8b26f9974ee7d9b5566639 /library/std/src/net/tcp.rs
parent8ff5e3cf99f93f80b7d0c1cf2a6cf859a8dda563 (diff)
downloadrust-4fbe73e0b79afb9e2b352438bac743104f0d2ba6.tar.gz
rust-4fbe73e0b79afb9e2b352438bac743104f0d2ba6.zip
Remove use of `#[rustc_deprecated]`
Diffstat (limited to 'library/std/src/net/tcp.rs')
-rw-r--r--library/std/src/net/tcp.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/library/std/src/net/tcp.rs b/library/std/src/net/tcp.rs
index f5d3c4905e0..06300035633 100644
--- a/library/std/src/net/tcp.rs
+++ b/library/std/src/net/tcp.rs
@@ -915,20 +915,14 @@ impl TcpListener {
     }
 
     #[stable(feature = "net2_mutators", since = "1.9.0")]
-    #[rustc_deprecated(
-        since = "1.16.0",
-        reason = "this option can only be set before the socket is bound"
-    )]
+    #[deprecated(since = "1.16.0", note = "this option can only be set before the socket is bound")]
     #[allow(missing_docs)]
     pub fn set_only_v6(&self, only_v6: bool) -> io::Result<()> {
         self.0.set_only_v6(only_v6)
     }
 
     #[stable(feature = "net2_mutators", since = "1.9.0")]
-    #[rustc_deprecated(
-        since = "1.16.0",
-        reason = "this option can only be set before the socket is bound"
-    )]
+    #[deprecated(since = "1.16.0", note = "this option can only be set before the socket is bound")]
     #[allow(missing_docs)]
     pub fn only_v6(&self) -> io::Result<bool> {
         self.0.only_v6()