Skip to content

Tracking Issue for ip_in_core #108443

@joshtriplett

Description

@joshtriplett
Member

Feature gate: #![feature(ip_in_core)]

This is a tracking issue for RFC rust-lang/rfcs#2832, providing networking types in core::net: IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, Ipv6MulticastScope and AddrParseError.

Steps / History

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Activity

added
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
on Feb 25, 2023
elpiel

elpiel commented on Jun 10, 2023

@elpiel

I guess there's nothing left to do.
Can this feature now move to the the FCP?

Xiretza

Xiretza commented on Jun 10, 2023

@Xiretza
Contributor

Can this be stabilized before error_in_core (AddrParseError implements core::error::Error)?

elpiel

elpiel commented on Jun 13, 2023

@elpiel

Can this be stabilized before error_in_core (AddrParseError implements core::error::Error)?

I believe so.

  • Nothing in ip_addr points or uses core::error::Error:

https://github.com/faern/rust/blob/1291216ac986ccc1432bf0bf2db9545e5251dd24/library/core/src/net/ip_addr.rs
(master) https://github.com/rust-lang/rust/blob/master/library/core/src/net/ip_addr.rs

Nemo157

Nemo157 commented on Jun 13, 2023

@Nemo157
Member

You can't feature gate a trait implementation. The question would be if it's possible to refer to any of the trait Error methods on the error types without having to activate the feature. I believe not, since you would have to use core::error::Error in order to bring the methods into scope.

elpiel

elpiel commented on Jun 15, 2023

@elpiel

Thanks for the explanation @Nemo157 and yes, I agree that it can't be stabilised before Error then.

16 remaining items

removed
proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
on Dec 12, 2023
rfcbot

rfcbot commented on Dec 12, 2023

@rfcbot
Collaborator

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

added
to-announceAnnounce this issue on triage meeting
and removed
final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
on Dec 22, 2023
rfcbot

rfcbot commented on Dec 22, 2023

@rfcbot
Collaborator

The final comment period, with a disposition to merge, as per the review above, is now complete.

As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

This will be merged soon.

faern

faern commented on Dec 24, 2023

@faern
Contributor

I pushed a stabilization PR: #119276

linked a pull request that will close this issueStabilize ip_in_core feature #119276on Dec 24, 2023
added 2 commits that reference this issue on Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Nemo157@djc@joshtriplett@Amanieu@faern

      Issue actions

        Tracking Issue for ip_in_core · Issue #108443 · rust-lang/rust