Uh oh!
There was an error while loading. Please reload this page.
Clarify shared file handler behavior of File::try_clone. - #47958
Conversation
rust-highfive
commented
Feb 2, 2018
r? @aidanhs (rust_highfive has picked a reviewer for you, use r? to override) |
2f2bfd0 to
687c30aCompareThere was a problem hiding this comment.
not a big fan of my wording here or in the previous section. lemme know if y'all have better suggestions
There was a problem hiding this comment.
Maybe something along the lines of:
This means that both
Fileinstance shares the same cursor; reads, writes and seeks will affect both instances simultaneously.
There was a problem hiding this comment.
Thanks for the suggestion! Latest force push incorporates some of that wording
abonander
commented
Feb 2, 2018
I just realized this could be a bad footgun for someone using a cloned handle with |
687c30a to
d597da3Comparefrewsxcv
commented
Feb 3, 2018
@abonander I think that might be a good idea. Any suggestions on how to word this? |
abonander
commented
Feb 3, 2018
Something like Note: |
abonander
commented
Feb 3, 2018
We already have a warning about a similar footgun with |
frewsxcv
commented
Feb 3, 2018
Okay so it sounds like we might want to open a separate issue for that then? What do you think? |
@bors r+ rollup This looks good to me, and it sounds like the bufreader thing may need more discussion elsewhere. |
bors
commented
Feb 3, 2018
📌 Commit d597da3 has been approved by |
bors
commented
Feb 3, 2018
💡 This pull request was already approved, no need to approve it again.
|
bors
commented
Feb 3, 2018
📌 Commit d597da3 has been approved by |
Clarify shared file handler behavior of File::try_clone. Fixesrust-lang#46578.
Clarify shared file handler behavior of File::try_clone. Fixesrust-lang#46578.
Clarify shared file handler behavior of File::try_clone. Fixesrust-lang#46578.
Fixes#46578.