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.)

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

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
added
final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
and removed
proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
on Aug 5, 2025
rfcbot

rfcbot commented on Aug 5, 2025

@rfcbot

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

added and removed
final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.
on Aug 15, 2025
rfcbot

rfcbot commented on Aug 15, 2025

@rfcbot

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.

added 2 commits that reference this issue on Aug 18, 2025
2222960
4b5d96e
added a commit that references this issue on Aug 19, 2025
9a5c00a
added a commit that references this issue on Aug 19, 2025
added 2 commits that reference this issue on Aug 20, 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.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

      @Amanieu@apiraino@rfcbot@cyrgani

      Issue actions

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