-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for normalize_lexically #134694
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
View all comments
Feature gate:
#![feature(normalize_lexically)]This is a tracking issue for
Path::normalize_lexicallythat is used to normalize a path, including..parent references, without touching the filesystem.Public API
Steps / History
normalize_lexically#134696Unresolved Questions
PathBufhave a method that normalizes in-place? Normalizing a path just removes components..path.base_path.join(user_path.normalize_lexically()?)can still escape the base path.The last two can be summarised as: should this strictly require paths to be sub-paths?
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩