Skip to content

Rewrite std::net::ToSocketAddrs doc examples. - #44117

Merged
bors merged 1 commit into
rust-lang:masterfrom
frewsxcv:frewsxcv-to-socket-addrs-examples
Aug 30, 2017
Merged

Rewrite std::net::ToSocketAddrs doc examples.#44117
bors merged 1 commit into
rust-lang:masterfrom
frewsxcv:frewsxcv-to-socket-addrs-examples

Conversation

@frewsxcv

Copy link
Copy Markdown
Contributor

in particular:

  • show how to create an iterator that yields multiple socket addresses
  • show more failing scenarios

done this as preliminary work while investigating #22569

note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @sfackler

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

@QuietMisdreavusQuietMisdreavus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hit a few travis errors

Comment threadsrc/libstd/net/addr.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there's not an impl for ((u8, u8, u8, u8), u16)? Maybe you still need a Ipv4Addr::new?

Comment threadsrc/libstd/net/addr.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing a close paren

Comment threadsrc/libstd/net/addr.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this actually appears to have successfully called to_socket_addrso_O

called `Result::unwrap_err()` on an `Ok` value: IntoIter([V4(127.0.0.0:80)])

Comment threadsrc/libstd/net/addr.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is setting this to no_run the right call? Especially if it actually resolved an address in the last run? If we want to show an example of it not resolving the address, we could just leave off the port; that will cause a failure.

Comment threadsrc/libstd/net/addr.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing close paren, this is the travis failure

@frewsxcv

Copy link
Copy Markdown
ContributorAuthor

tests pass now. i'll squash whenever this gets approved

@carols10centscarols10cents added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 28, 2017
@QuietMisdreavus

Copy link
Copy Markdown
Contributor

Looks good! Go ahead and squash and r=me.

in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
@frewsxcv
frewsxcvforce-pushed the frewsxcv-to-socket-addrs-examples branch from 043382c to 10bd39eCompareAugust 28, 2017 13:23
@frewsxcv

Copy link
Copy Markdown
ContributorAuthor

@bors r=QuietMisdreavus rollup

@bors

bors commented Aug 28, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 10bd39e has been approved by QuietMisdreavus

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Aug 29, 2017
…xamples, r=QuietMisdreavus
Rewrite `std::net::ToSocketAddrs` doc examples.
in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
done this as preliminary work while investigating rust-lang#22569
note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving
@frewsxcvfrewsxcv mentioned this pull request Aug 29, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Aug 29, 2017
…xamples, r=QuietMisdreavus
Rewrite `std::net::ToSocketAddrs` doc examples.
in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
done this as preliminary work while investigating rust-lang#22569
note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving
@frewsxcvfrewsxcv mentioned this pull request Aug 29, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Aug 29, 2017
…xamples, r=QuietMisdreavus
Rewrite `std::net::ToSocketAddrs` doc examples.
in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
done this as preliminary work while investigating rust-lang#22569
note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving
@frewsxcvfrewsxcv mentioned this pull request Aug 29, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Aug 29, 2017
…xamples, r=QuietMisdreavus
Rewrite `std::net::ToSocketAddrs` doc examples.
in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
done this as preliminary work while investigating rust-lang#22569
note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving
@frewsxcvfrewsxcv mentioned this pull request Aug 29, 2017
@arielb1arielb1 added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 29, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Aug 29, 2017
…xamples, r=QuietMisdreavus
Rewrite `std::net::ToSocketAddrs` doc examples.
in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
done this as preliminary work while investigating rust-lang#22569
note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving
@arielb1arielb1 mentioned this pull request Aug 29, 2017
@arielb1arielb1 mentioned this pull request Aug 29, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Aug 29, 2017
…xamples, r=QuietMisdreavus
Rewrite `std::net::ToSocketAddrs` doc examples.
in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
done this as preliminary work while investigating rust-lang#22569
note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving
@arielb1arielb1 mentioned this pull request Aug 29, 2017
bors added a commit that referenced this pull request Aug 29, 2017
Rollup of 12 pull requests
- Successful merges: #43705, #43778, #43918, #44076, #44117, #44121, #44126, #44134, #44135, #44141, #44144, #44158
- Failed merges:
@bors
bors merged commit 10bd39e into rust-lang:masterAug 30, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@frewsxcv@rust-highfive@QuietMisdreavus@bors@carols10cents@sfackler@arielb1