Skip to content

Unix path::absolute: Fix leading "." component #94649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 6, 2022

Conversation

ChrisDenton
Copy link
Member

@ChrisDenton ChrisDenton commented Mar 5, 2022

Testing leading . and .. components were missing from the unix tests.

This PR adds them and fixes the leading . case. It also fixes the test cases so that they do an exact comparison.

This problem reported by @axetroy

Testing leading `.` and `..` components were missing from the unix tests.
@rust-highfive
Copy link
Contributor

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 5, 2022
@ChrisDenton ChrisDenton changed the title Unix absolute fix Unix path::absolute: Fix leading "." component Mar 5, 2022
@Dylan-DPC
Copy link
Member

r? @Dylan-DPC

@Dylan-DPC
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Mar 6, 2022

📌 Commit 0421af9 has been approved by Dylan-DPC

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 6, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 6, 2022
…lan-DPC

Unix path::absolute: Fix leading "." component

Testing leading `.` and `..` components were missing from the unix tests.

This PR adds them and fixes the leading `.` case. It also fixes the test cases so that they do an exact comparison.

This problem reported by `@axetroy`
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 6, 2022
Rollup of 3 pull requests

Successful merges:

 - rust-lang#92509 (doc: `Iterator::partition` use partial type hints)
 - rust-lang#94621 (rustbuild: support RelWithDebInfo for lld)
 - rust-lang#94649 (Unix path::absolute: Fix leading "." component)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 8ea3f23 into rust-lang:master Mar 6, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 6, 2022
@ChrisDenton ChrisDenton deleted the unix-absolute-fix branch March 6, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants