]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #8336 : stepancheg/rust/socket-addr-from-str, r=brson
authorbors <bors@rust-lang.org>
Fri, 9 Aug 2013 02:08:02 +0000 (19:08 -0700)
committerbors <bors@rust-lang.org>
Fri, 9 Aug 2013 02:08:02 +0000 (19:08 -0700)
FromStr implemented from scratch.

It is overengineered a bit, however.

Old implementation handles errors by fail!()-ing. And it has bugs, like it accepts `127.0.0.1::127.0.0.1` as IPv6 address, and does not handle all ipv4-in-ipv6 schemes. So I decided to implement parser from scratch.


Trivial merge