diff options
| author | bors <bors@rust-lang.org> | 2022-05-09 04:47:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-09 04:47:30 +0000 |
| commit | 8a2fe75d0e6e024aa434e5b9c40adb2567f362b8 (patch) | |
| tree | efdc8580272e7994c4de5ab04f16cc3087e73c64 /library/std/src/net | |
| parent | db5b365fb0e7aa5f59d80236f520f5afc6e39ff4 (diff) | |
| parent | dac487ae2bf9f0d51b7462e9d311d67f46048643 (diff) | |
| download | rust-8a2fe75d0e6e024aa434e5b9c40adb2567f362b8.tar.gz rust-8a2fe75d0e6e024aa434e5b9c40adb2567f362b8.zip | |
Auto merge of #95960 - jhpratt:remove-rustc_deprecated, r=compiler-errors
Remove `#[rustc_deprecated]` This removes `#[rustc_deprecated]` and introduces diagnostics to help users to the right direction (that being `#[deprecated]`). All uses of `#[rustc_deprecated]` have been converted. CI is expected to fail initially; this requires #95958, which includes converting `stdarch`. I plan on following up in a short while (maybe a bootstrap cycle?) removing the diagnostics, as they're only intended to be short-term.
Diffstat (limited to 'library/std/src/net')
| -rw-r--r-- | library/std/src/net/tcp.rs | 10 |
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() |
