]> git.lizzy.rs Git - rust.git/commit
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)
commit7a1b61d6317c27b735e5471d3d704584bea4c925
tree7e08ecea0d9d40baaa52a686a7dc8dd7863d5e05
parent936f70bd878327d867b6f8f82061d738355a47c9
parent58b11229e563da705e2579821b8c3fe1fa799c52
auto merge of #8336 : stepancheg/rust/socket-addr-from-str, r=brson

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.