Skip to content

Stabilize Ipv6Addr::to_ipv4_mapped - #96906

Merged
bors merged 2 commits into
rust-lang:masterfrom
tbu-:pr_stabilize_to_ipv4_mapped
May 23, 2022
Merged

Stabilize Ipv6Addr::to_ipv4_mapped#96906
bors merged 2 commits into
rust-lang:masterfrom
tbu-:pr_stabilize_to_ipv4_mapped

Conversation

@tbu-

@tbu-tbu- commented May 10, 2022

Copy link
Copy Markdown
Contributor

CC #27709 (tracking issue for the ip feature which contains more
functions)

The function Ipv6Addr::to_ipv4 is bad because it also returns an IPv4
address for the IPv6 loopback address ::1. Stabilize
Ipv6Addr::to_ipv4_mapped so we can recommend that function instead.

tbu- added 2 commits May 10, 2022 18:06
CC rust-lang#27709 (tracking issue for the `ip` feature which contains more
functions)
The function `Ipv6Addr::to_ipv4` is bad because it also returns an IPv4
address for the IPv6 loopback address `::1`. Stabilize
`Ipv6Addr::to_ipv4_mapped` so we can recommend that function instead.
@rustbotrustbot added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label May 10, 2022
@rust-highfive

Copy link
Copy Markdown
Contributor

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with r? rust-lang/libs-api @rustbot label +T-libs-api -T-libs to request review from a libs-api team reviewer. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @kennytm

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 10, 2022
@tbu-

tbu- commented May 10, 2022

Copy link
Copy Markdown
ContributorAuthor

r? rust-lang/libs-api @rustbot label +T-libs-api -T-libs

@rustbotrustbot added the T-libs-api [DEPRECATED; DO NOT USE] label May 10, 2022
@rust-highfiverust-highfive assigned dtolnay and unassigned kennytmMay 10, 2022
@rustbotrustbot removed the T-libs Relevant to the library team, which will review and decide on the PR/issue. label May 10, 2022
@tbu-tbu- changed the title Stabilize Ipv6Addr::to_ipv4_mappedStabilize Ipv6Addr::to_ipv4_mappedMay 10, 2022
@dtolnay

Copy link
Copy Markdown
Member

@rfcbot

rfcbot commented May 10, 2022

Copy link
Copy Markdown

Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@rfcbotrfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels May 10, 2022
@rfcbotrfcbot added final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels May 18, 2022
@rfcbot

Copy link
Copy Markdown

🔔 This is now entering its final comment period, as per the review above. 🔔

@dtolnay

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented May 22, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 813c5b0 has been approved by dtolnay

@borsbors 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 May 22, 2022
@bors

bors commented May 23, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 813c5b0 with merge d125574...

@bors

bors commented May 23, 2022

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: dtolnay
Pushing d125574 to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label May 23, 2022
@bors
bors merged commit d125574 into rust-lang:masterMay 23, 2022
@rustbotrustbot added this to the 1.63.0 milestone May 23, 2022
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (d125574): comparison url.

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results
  • Primary benchmarks: 🎉 relevant improvement found
  • Secondary benchmarks: 🎉 relevant improvements found
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count100121
mean2N/AN/A-3.2%-1.9%-3.2%
maxN/AN/A-3.2%-2.0%-3.2%

Cycles

Results
  • Primary benchmarks: mixed results
  • Secondary benchmarks: no relevant changes found
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count110102
mean22.4%N/A-1.6%N/A0.4%
max2.4%N/A-1.6%N/A2.4%

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Footnotes

  1. number of relevant changes2

  2. the arithmetic mean of the percent change2

Comment threadlibrary/std/src/net/ip.rs
@rfcbotrfcbot added finished-final-comment-period The final comment period is finished for this PR / Issue. to-announce Announce this issue on triage meeting and removed final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. labels May 28, 2022
@apirainoapiraino removed the to-announce Announce this issue on triage meeting label Jun 9, 2022
@JohnTitorJohnTitor added the relnotes Marks issues that should be documented in the release notes of the next release. label Jun 21, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.merged-by-borsThis PR was explicitly merged by bors.relnotesMarks issues that should be documented in the release notes of the next release.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-libs-api[DEPRECATED; DO NOT USE]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

11 participants

@tbu-@rust-highfive@dtolnay@rfcbot@bors@rust-timer@klensy@kennytm@apiraino@JohnTitor@rustbot