-
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
Rollup of 7 pull requests #112750
Rollup of 7 pull requests #112750
Commits on Jan 24, 2023
-
io: soften ‘at most one write attempt’ requirement in io::Write::write
At the moment, documentation of std::io::Write::write indicates that call to it ‘represents at most one attempt to write to any wrapped object’. It seems that such wording was put there to contrast it with pre-1.0 interface which attempted to write all the data (it has since been changed in [RFC 517]). However, the requirement puts unnecessary constraints and may complicate adaptors which perform non-trivial transformations on the data. For example, they may maintain an internal buffer which needs to be written out before the write method accepts more data. It might be natural to code the method such that it flushes the buffer and then grabs another chunk of user data. With the current wording in the documentation, the adaptor would be forced to return Ok(0). This commit softens the wording such that implementations can choose code structure which makes most sense for their particular use case. While at it, elaborate on the meaning of `Ok(0)` return pointing out that the write_all methods interprets it as an error. [RFC 517]: https://rust-lang.github.io/rfcs/0517-io-os-reform.html
Configuration menu - View commit details
-
Copy full SHA for 316742e - Browse repository at this point
Copy the full SHA 316742eView commit details
Commits on Feb 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8654669 - Browse repository at this point
Copy the full SHA 8654669View commit details
Commits on Mar 1, 2023
-
Update library/std/src/io/mod.rs
Co-authored-by: Andrew Gallant <jamslam@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5451dfe - Browse repository at this point
Copy the full SHA 5451dfeView commit details
Commits on Mar 3, 2023
-
Update library/std/src/io/mod.rs
Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7d57cd5 - Browse repository at this point
Copy the full SHA 7d57cd5View commit details
Commits on Jun 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3a9a8d4 - Browse repository at this point
Copy the full SHA 3a9a8d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f2c3f5 - Browse repository at this point
Copy the full SHA 2f2c3f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dce58d - Browse repository at this point
Copy the full SHA 2dce58dView commit details
Commits on Jun 15, 2023
-
std: only depend on dlmalloc for wasm*-unknown
It was already filtered out for emscripten, but wasi doesn't need dlmalloc either since it reuses `unix/alloc.rs`.
Configuration menu - View commit details
-
Copy full SHA for 886085a - Browse repository at this point
Copy the full SHA 886085aView commit details
Commits on Jun 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7a2490e - Browse repository at this point
Copy the full SHA 7a2490eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3078de7 - Browse repository at this point
Copy the full SHA 3078de7View commit details
Commits on Jun 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f874345 - Browse repository at this point
Copy the full SHA f874345View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52d3fc9 - Browse repository at this point
Copy the full SHA 52d3fc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6594c75 - Browse repository at this point
Copy the full SHA 6594c75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4343d36 - Browse repository at this point
Copy the full SHA 4343d36View commit details
Commits on Jun 18, 2023
-
Rollup merge of rust-lang#107200 - mina86:c, r=Amanieu
io: soften ‘at most one write attempt’ requirement in io::Write::write At the moment, documentation of std::io::Write::write indicates that call to it ‘represents at most one attempt to write to any wrapped object’. It seems that such wording was put there to contrast it with pre-1.0 interface which attempted to write all the data (it has since been changed in [RFC 517]). However, the requirement puts unnecessary constraints and may complicate adaptors which perform non-trivial transformations on the data. For example, they may maintain an internal buffer which needs to be written out before the write method accepts more data. It might be natural to code the method such that it flushes the buffer and then grabs another chunk of user data. With the current wording in the documentation, the adaptor would be forced to return Ok(0). This commit softens the wording such that implementations can choose code structure which makes most sense for their particular use case. While at it, elaborate on the meaning of `Ok(0)` return pointing out that the write_all methods interprets it as an error. [RFC 517]: https://rust-lang.github.io/rfcs/0517-io-os-reform.html
Configuration menu - View commit details
-
Copy full SHA for 6ca3951 - Browse repository at this point
Copy the full SHA 6ca3951View commit details -
Rollup merge of rust-lang#112599 - saethlin:cleaner-panics, r=thomcc
Launch a non-unwinding panic for misaligned pointer deref This panic already never unwinds, but that's only because it always hits the unwind guard that's created by our `UnwindAction::Terminate`. Hitting the unwind guard generates a huge double-panic backtrace. Now we generate a normal-looking panic message when this check is hit. r? `@thomcc`
Configuration menu - View commit details
-
Copy full SHA for 9f4d96f - Browse repository at this point
Copy the full SHA 9f4d96fView commit details -
Rollup merge of rust-lang#112606 - clarfonthey:ip-display, r=thomcc
Alter `Display` for `Ipv6Addr` for IPv4-compatible addresses ACP: rust-lang/libs-team#239
Configuration menu - View commit details
-
Copy full SHA for 9589d43 - Browse repository at this point
Copy the full SHA 9589d43View commit details -
Rollup merge of rust-lang#112667 - compiler-errors:wf-goal-is-clause,…
… r=lcnr Move WF/ConstEvaluatable goal to clause It can show up in a param-env, so I think it needs to be a clause kind. r? `@lcnr` or `@oli-obk`
Configuration menu - View commit details
-
Copy full SHA for 355fe75 - Browse repository at this point
Copy the full SHA 355fe75View commit details -
Rollup merge of rust-lang#112685 - cuviper:wasm-dlmalloc, r=Mark-Simu…
…lacrum std: only depend on dlmalloc for wasm*-unknown It was already filtered out for emscripten, but wasi doesn't need dlmalloc either since it reuses `unix/alloc.rs`.
Configuration menu - View commit details
-
Copy full SHA for 1d7af9d - Browse repository at this point
Copy the full SHA 1d7af9dView commit details -
Rollup merge of rust-lang#112722 - DrMeepster:patch-2, r=clubby789
bootstrap: check for dry run when copying env vars for msvc The new synthetic targets for mir-opt blessing aren't added to `builder.cc` during dry runs, causing `x.py test tests/mir-opt --bless` to crash on MSVC when it tries to copy env vars to the C compiler invocation. This PR adds a check for dry run to fix the panic.
Configuration menu - View commit details
-
Copy full SHA for 09e6d3e - Browse repository at this point
Copy the full SHA 09e6d3eView commit details -
Rollup merge of rust-lang#112734 - dswij:bounds-predicates-clause, r=…
…compiler-errors Make `Bound::predicates` use `Clause` Part of rust-lang#107250 `Bound::predicates` returns an iterator over `Binder<_, Clause>` instead of `Predicate`. I tried updating `explicit_predicates_of` as well, but it seems that it needs a lot more change than I thought. Will do it in a separate PR instead.
Configuration menu - View commit details
-
Copy full SHA for 890e0da - Browse repository at this point
Copy the full SHA 890e0daView commit details