-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Provide optional Read
/Write
methods for stdio
#136769
Conversation
r? @Noratrieb rustbot has assigned @Noratrieb. Use |
This comment has been minimized.
This comment has been minimized.
6d101c2
to
3deb1ce
Compare
r? joboet |
Read
/Write
method for stdioRead
/Write
methods for stdio
f51bb4e
to
118bb74
Compare
I dropped a few commits from this PR:
|
Since this touches a lot of targets, I'm going to split this into multiple PRs for more target-focused review, once #136780 goes through the merge queue. |
That'd be great, thank you! Especially the SGX stuff would be much simpler to review as a dedicated PR. |
118bb74
to
ade071b
Compare
…o, r=<try> Provide optional `Read`/`Write` methods for stdio Override more of the default methods for `io::Read` and `io::Write` for stdio types, when efficient to do so, and deduplicate unsupported types. Tracked in rust-lang#136756. try-job: x86_64-msvc-1
Match what `std::io::Empty` does, since it is very similar. However, still evaluate the `fmt::Arguments` in `write_fmt` to be consistent with other platforms.
This seems to be the pattern for newer pal stdio types.
That's a strange failure, since this PR changes nothing for Windows and the other PRs look platform-independent. I'm curious what the try run will report. I reviewed it again and noticed that |
46e3e46
to
f6e90d8
Compare
@tgross35 The try job passed |
Weird, nothing else in that rollup seems like it could have had an affect on those tests. @bors r=joboet |
⌛ Trying commit f6e90d8 with merge 533535adca65287b0e54b123821057231cd51bc8... |
…o, r=<try> Provide optional `Read`/`Write` methods for stdio Override more of the default methods for `io::Read` and `io::Write` for stdio types, when efficient to do so, and deduplicate unsupported types. Tracked in rust-lang#136756. try-job: x86_64-msvc-1
☀️ Try build successful - checks-actions |
Probably just a spurious failure then? |
I guess so, that’s just a weirdly specific failure to be spurious. @bors r=joboet |
⌛ Testing commit f6e90d8 with merge 60a3084f64607e86dd7715d72f11764cd500c364... |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing f08d5c0 (parent) -> 60a3084 (this PR) Test differencesShow 60 test diffsAdditionally, 60 doctest diffs were found. These are ignored, as they are noisy. Job group index |
Finished benchmarking commit (60a3084): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -3.1%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (secondary 3.7%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 774.928s -> 774.048s (-0.11%) |
Override more of the default methods for
io::Read
andio::Write
for stdio types, when efficient to do so, and deduplicate unsupported types.Tracked in #136756.
try-job: x86_64-msvc-1