-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added io forwarding methods to the stdio structs #72705
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
I'm not sure how to diagnose that error; it doesn't seem to be related to this change? I guess it could be a reentrant Mutex thing? But I'm not sure how it wouldn't have been failing before. |
@Lucretiel Ping from triage! It seems like an error from a I'm also reassigning this to t-libs and applying the libs-impl tag. r? @Amanieu |
I'm not sure how to reproduce; the only development machine I have access to right now is a Windows machine, and I'm further not sure where to even begin on a failure that only appears on half the Ubuntu test machines. |
I got a backtrace, here is the relevant part:
The issue is that the test is calling |
Thank you! I'll check it out this weekend. Would the possibility of code like this in the wild make this a breaking change? |
I do think this would be a breaking change. |
Ping from triage: |
Sorry, been busy with other things. I'm still trying to follow the stack trace to track down the panic. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
It seems like the only way for this error condition to be triggered is through |
@bors r+ |
📌 Commit 14d385b has been approved by |
Added io forwarding methods to the stdio structs Added methods to forward the `io::Read` and `io::Write` methods of the myriad wrapper structs in `stdio.rs` to their underlying readers / writers. This is especially important for the structs on the outside of a locking boundary, to ensure that the lock isn't being dropped and re-acquired in a loop.
Added io forwarding methods to the stdio structs Added methods to forward the `io::Read` and `io::Write` methods of the myriad wrapper structs in `stdio.rs` to their underlying readers / writers. This is especially important for the structs on the outside of a locking boundary, to ensure that the lock isn't being dropped and re-acquired in a loop.
Added io forwarding methods to the stdio structs Added methods to forward the `io::Read` and `io::Write` methods of the myriad wrapper structs in `stdio.rs` to their underlying readers / writers. This is especially important for the structs on the outside of a locking boundary, to ensure that the lock isn't being dropped and re-acquired in a loop.
⌛ Testing commit 14d385b with merge 9ac1ca2ee0af95181b62ee71d9d58fa71812d2fb... |
Added io forwarding methods to the stdio structs Added methods to forward the `io::Read` and `io::Write` methods of the myriad wrapper structs in `stdio.rs` to their underlying readers / writers. This is especially important for the structs on the outside of a locking boundary, to ensure that the lock isn't being dropped and re-acquired in a loop.
@bors r- |
@bors r=Amanieu (yielding to rollup, bors yield is broken for some reason. this PR is included in the rollup) |
📌 Commit 14d385b has been approved by |
☀️ Test successful - checks-azure |
False positive perf regression is another case of rust-lang/compiler-team#281 |
Added methods to forward the
io::Read
andio::Write
methods of the myriad wrapper structs instdio.rs
to their underlying readers / writers. This is especially important for the structs on the outside of a locking boundary, to ensure that the lock isn't being dropped and re-acquired in a loop.