Skip to content

Conversation

sunfishcode
Copy link
Member

This also eliminates a use of a Path convenience function, in support
of #80741, refactoring std::path to focus on pure data structures and
algorithms.

This also eliminates a use of a `Path` convenience function, in support
of rust-lang#80741, refactoring `std::path` to focus on pure data structures and
algorithms.
@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 Jan 6, 2021
@Mark-Simulacrum
Copy link
Member

I am not sure I would call this a simplification - it seems harder to understand to me - and this code isn't really worried about TOCTOU or similar problems I think?

I'm personally not sure we should deprecate these methods anyway...

@sunfishcode
Copy link
Member Author

Yes, the feedback from #80741 and elsewhere is to not deprecate these methods. With that, this PR is just a minor optimization, making up_to_date perform one fewer system call, so feel free to close this if this isn't important for this code path.

@Mark-Simulacrum
Copy link
Member

Yes, I think readability here is more important.

@sunfishcode sunfishcode deleted the path-cleanup/build-cleanup branch January 9, 2021 01:11
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants