-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Clarify interfaction between File::set_len and file cursor #48480
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @bluss (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Has this behavior been verified on both Linux and Windows? |
I did look at the documentation of SetFileInformationByHandle but it isn't clear about how setting |
Ping from triage, @bluss! |
Confirmed with local testing on Windows that changing the length of the file does not update the cursor, even when it causes the cursor to be past the end. |
Ping from triage! This PR has yet to be reviewed, can someone from @rust-lang/libs do it? |
@bors: r+ |
📌 Commit cfad25e has been approved by |
⌛ Testing commit cfad25e with merge 327f43edf82d38752a076ea97c7930471e7cfa1f... |
@bors rollup |
💔 Test failed - status-appveyor |
52 minutes to compile stage1-rustc, which is ridiculous. Timing breakdown
/proc/cpuinfo of this build (Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz)
/proc/cpuinfo of the previous build (Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz)
/proc/meminfo of this build (1.8 GiB total)
/proc/meminfo of previous build (1.7 GiB total)
|
Clarify interfaction between File::set_len and file cursor
No description provided.