Skip to content

std: Stabilize FromStr implementations in std::net #23504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2015

Conversation

alexcrichton
Copy link
Member

The IP and socket address types all had FromStr implemented but the
implementations were not marked stable, nor was the error type returned ready to
be properly stabilized.

This commit marks the implementations of FromStr as stable and also renamed
the ParseError structure to AddrParseError. The error is now also an opaque
structure that cannot be constructed outside the standard library.

cc #22949
[breaking-change]

The IP and socket address types all had `FromStr` implemented but the
implementations were not marked stable, nor was the error type returned ready to
be properly stabilized.

This commit marks the implementations of `FromStr` as stable and also renamed
the `ParseError` structure to `AddrParseError`. The error is now also an opaque
structure that cannot be constructed outside the standard library.

cc rust-lang#22949
[breaking-change]
@alexcrichton
Copy link
Member Author

r? @aturon

@rust-highfive rust-highfive assigned aturon and unassigned nikomatsakis Mar 19, 2015
@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@aturon
Copy link
Member

aturon commented Mar 19, 2015

@bors: r+ f2e3c74

@bors
Copy link
Collaborator

bors commented Mar 20, 2015

⌛ Testing commit f2e3c74 with merge fda8673...

bors added a commit that referenced this pull request Mar 20, 2015
The IP and socket address types all had `FromStr` implemented but the
implementations were not marked stable, nor was the error type returned ready to
be properly stabilized.

This commit marks the implementations of `FromStr` as stable and also renamed
the `ParseError` structure to `AddrParseError`. The error is now also an opaque
structure that cannot be constructed outside the standard library.

cc #22949
[breaking-change]
@bors bors merged commit f2e3c74 into rust-lang:master Mar 20, 2015
Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 20, 2015
…r=aturon

 The IP and socket address types all had `FromStr` implemented but the
implementations were not marked stable, nor was the error type returned ready to
be properly stabilized.

This commit marks the implementations of `FromStr` as stable and also renamed
the `ParseError` structure to `AddrParseError`. The error is now also an opaque
structure that cannot be constructed outside the standard library.

cc rust-lang#22949
[breaking-change]
@alexcrichton alexcrichton deleted the parse-error-not-unit branch March 20, 2015 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants