From dcce6cb5112a3c3f4ec9e439961ff310bcb878cd Mon Sep 17 00:00:00 2001 From: Alexis Bourget Date: Sat, 25 Jul 2020 14:55:51 +0200 Subject: [PATCH 1/2] Remove links to rejected errata 4406 for RFC 4291 --- library/std/src/net/ip.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/library/std/src/net/ip.rs b/library/std/src/net/ip.rs index 0f0be2c4883..21c2667f63f 100644 --- a/library/std/src/net/ip.rs +++ b/library/std/src/net/ip.rs @@ -1265,15 +1265,12 @@ impl Ipv6Addr { /// # See also /// /// - [IETF RFC 4291 section 2.5.6] - /// - [RFC 4291 errata 4406] /// - [`is_unicast_link_local()`] /// /// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 /// [IETF RFC 4291 section 2.5.6]: https://tools.ietf.org/html/rfc4291#section-2.5.6 /// [`true`]: ../../std/primitive.bool.html - /// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406 /// [`is_unicast_link_local()`]: ../../std/net/struct.Ipv6Addr.html#method.is_unicast_link_local - /// pub fn is_unicast_link_local_strict(&self) -> bool { (self.segments()[0] & 0xffff) == 0xfe80 && (self.segments()[1] & 0xffff) == 0 @@ -1324,13 +1321,10 @@ impl Ipv6Addr { /// # See also /// /// - [IETF RFC 4291 section 2.4] - /// - [RFC 4291 errata 4406] /// /// [IETF RFC 4291 section 2.4]: https://tools.ietf.org/html/rfc4291#section-2.4 /// [`true`]: ../../std/primitive.bool.html - /// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406 /// [`is_unicast_link_local_strict()`]: ../../std/net/struct.Ipv6Addr.html#method.is_unicast_link_local_strict - /// pub fn is_unicast_link_local(&self) -> bool { (self.segments()[0] & 0xffc0) == 0xfe80 } From 90d00527d147c1ef9bca3ea57ea2f80fbea81e56 Mon Sep 17 00:00:00 2001 From: Alexis Bourget Date: Sun, 26 Jul 2020 22:00:29 +0200 Subject: [PATCH 2/2] Add note to clearly mark the RFC as rejected --- library/std/src/net/ip.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/std/src/net/ip.rs b/library/std/src/net/ip.rs index 21c2667f63f..a64b43ca3ad 100644 --- a/library/std/src/net/ip.rs +++ b/library/std/src/net/ip.rs @@ -1265,11 +1265,14 @@ impl Ipv6Addr { /// # See also /// /// - [IETF RFC 4291 section 2.5.6] + /// - [RFC 4291 errata 4406] (which has been rejected but provides useful + /// insight) /// - [`is_unicast_link_local()`] /// /// [IETF RFC 4291]: https://tools.ietf.org/html/rfc4291 /// [IETF RFC 4291 section 2.5.6]: https://tools.ietf.org/html/rfc4291#section-2.5.6 /// [`true`]: ../../std/primitive.bool.html + /// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406 /// [`is_unicast_link_local()`]: ../../std/net/struct.Ipv6Addr.html#method.is_unicast_link_local pub fn is_unicast_link_local_strict(&self) -> bool { (self.segments()[0] & 0xffff) == 0xfe80 @@ -1321,9 +1324,12 @@ impl Ipv6Addr { /// # See also /// /// - [IETF RFC 4291 section 2.4] + /// - [RFC 4291 errata 4406] (which has been rejected but provides useful + /// insight) /// /// [IETF RFC 4291 section 2.4]: https://tools.ietf.org/html/rfc4291#section-2.4 /// [`true`]: ../../std/primitive.bool.html + /// [RFC 4291 errata 4406]: https://www.rfc-editor.org/errata/eid4406 /// [`is_unicast_link_local_strict()`]: ../../std/net/struct.Ipv6Addr.html#method.is_unicast_link_local_strict pub fn is_unicast_link_local(&self) -> bool { (self.segments()[0] & 0xffc0) == 0xfe80