Skip to content

Tracking Issue for const {OsString, PathBuf}::new #141520

@cyrgani

Description

@cyrgani
Contributor

Feature gate: #![feature(const_pathbuf_osstring_new)]

This is a tracking issue for making OsString::new and PathBuf::new const functions.

Public API

impl OsString {
    pub const fn new() -> OsString;
}
impl PathBuf {
    pub const fn new() -> PathBuf;
}

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

  • Final comment period (FCP)1
    Stabilization PR

Unresolved Questions

  • None yet.

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 May 24, 2025
Amanieu

Amanieu commented on Jun 3, 2025

@Amanieu
Member

@rfcbot merge

rfcbot

rfcbot commented on Jun 3, 2025

@rfcbot
Collaborator

Team member @Amanieu 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.

added
proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.
on Jun 3, 2025
added
S-tracking-ready-to-stabilizeStatus: This is ready to stabilize; it may need a stabilization report and a PR
and removed on Jun 4, 2025
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 RFCS-tracking-ready-to-stabilizeStatus: This is ready to stabilize; it may need a stabilization report and a PRT-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.proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Amanieu@rfcbot@cyrgani

        Issue actions

          Tracking Issue for const {OsString, PathBuf}::new · Issue #141520 · rust-lang/rust