-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
fallback to lstat when stat fails on Windows #109235
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ChrisDenton (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost! But if the metadata
call returns Ok
then we always want to return that. We only want to test if lstat
returned a symlink or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I just have one small style suggestion but otherwise this looks ready to be merged.
Thanks for fixing this! If all goes well with the full suite of CI tests, this should be in nightly soon and released in Rust 1.70. @bors r+ rollup |
fallback to lstat when stat fails on Windows Fixes rust-lang#109106 `@ChrisDenton` please let me know if this is the expected behavior for stat on windows
fallback to lstat when stat fails on Windows Fixes rust-lang#109106 ``@ChrisDenton`` please let me know if this is the expected behavior for stat on windows
fallback to lstat when stat fails on Windows Fixes rust-lang#109106 ```@ChrisDenton``` please let me know if this is the expected behavior for stat on windows
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#109102 (Erase escaping late-bound regions when probing for ambiguous associated types) - rust-lang#109200 (Fix index out of bounds in `suggest_trait_fn_ty_for_impl_fn_infer`) - rust-lang#109211 (E0206 - update description ) - rust-lang#109222 (Do not ICE for unexpected lifetime with ConstGeneric rib) - rust-lang#109235 (fallback to lstat when stat fails on Windows) - rust-lang#109248 (Pass the right HIR back from `get_fn_decl`) - rust-lang#109251 (Suggest surrounding the macro with `{}` to interpret as a statement) - rust-lang#109256 (Check for llvm-tools before install) - rust-lang#109257 (resolve: Improve debug impls for `NameBinding`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #109106
@ChrisDenton please let me know if this is the expected behavior for stat on windows