rust/library/std/src/net
Chris Morgan 0255398ff7 Improve AddrParseError description
The existing description was incorrect for socket addresses, and
misleading: users would see “invalid IP address syntax” and suppose they
were supposed to provide an IP address rather than a socket address.

I contemplated making it two variants (IP, socket), but realised we can
do still better for the IPv4 and IPv6 types, so here it is as six.

I contemplated more precise error descriptions (e.g. “invalid IPv6
socket address syntax: expected a decimal scope ID after %”), but that’s
a more invasive change, and probably not worthwhile anyway.
2022-04-19 13:02:20 +10:00
..
addr Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
ip Fix a pair of mistyped test cases in std::net::ip 2021-12-26 16:41:32 +08:00
parser Disallow octal format in Ipv4 string 2021-03-30 10:24:23 +08:00
tcp Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
udp Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
addr.rs Add #[must_use] to remaining std functions (A-N) 2021-10-30 23:44:02 -04:00
ip.rs Adjust feature names that disagree on const stabilization version 2022-03-31 12:34:48 -07:00
mod.rs Rollup merge of #88805 - krhancoc:master, r=dtolnay 2022-03-04 02:06:37 +01:00
parser.rs Improve AddrParseError description 2022-04-19 13:02:20 +10:00
tcp.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
test.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
udp.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00