Skip to content

Fix path_trailing_sep methods for Windows verbatim paths - #162643

Open
ChrisDenton wants to merge 1 commit into
rust-lang:mainfrom
ChrisDenton:trailing-sep-verbatim
Open

Fix path_trailing_sep methods for Windows verbatim paths#162643
ChrisDenton wants to merge 1 commit into
rust-lang:mainfrom
ChrisDenton:trailing-sep-verbatim

Conversation

@ChrisDenton

@ChrisDenton ChrisDenton commented Sep 11, 2026

Copy link
Copy Markdown
Member

Normally on Windows the path separator is either \ or / but for verbatim paths it is only \. Currently the unstable path_trailing_sep methods (#142503) do not take that into account and just use the general is_sep_byte method.

This PR changes it to use the internal Components::is_sep(self, b) method that takes into account verbatim paths.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 11, 2026
@rustbot rustbot added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Sep 11, 2026
@rustbot

rustbot commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 13 candidates
  • Random selection from Darksonn, JohnTitor, Mark-Simulacrum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants