Skip to content

Tracking Issue for const path separators #153106

Open

Description

@MikkelPaulson

Feature gate: #![feature(const_path_separators)]

This is a tracking issue for making platform-specific path separator information available in a const context. Currently the main separator is available via std::path::MAIN_SEPARATOR, but secondary separators, if any, are not available at compile time.

Public API

// std::path

/// was pub fn
pub const fn is_separator(c: char) -> bool;

/// supplements MAIN_SEPARATOR
pub const SEPARATORS: &[char];

/// supplements MAIN_SEPARATOR_STR
pub const SEPARATORS_STR: &[&str];

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

  1. added
    T-libs-api[DEPRECATED; DO NOT USE]
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Feb 25, 2026
  2. added a commit that references this issue on Mar 4, 2026
  3. added a commit that references this issue on Mar 5, 2026
  4. MikkelPaulson commented on Mar 6, 2026

    @MikkelPaulson
    ContributorAuthor

    @rustbot label -S-tracking-unimplemented

  5. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
  6. rustbot commented on Oct 23, 2026

    @rustbot
    Collaborator

    Error: Only Rust team members can ping teams.

    Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

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-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions