Skip to content
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

Closed

Commits on Jan 24, 2023

  1. 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
    mina86 committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    316742e View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. Configuration menu
    Copy the full SHA
    8654669 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Update library/std/src/io/mod.rs

    Co-authored-by: Andrew Gallant <jamslam@gmail.com>
    mina86 and BurntSushi committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    5451dfe View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. Update library/std/src/io/mod.rs

    Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
    mina86 and programmerjake authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    7d57cd5 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    3a9a8d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2f2c3f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2dce58d View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. 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`.
    cuviper committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    886085a View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. Configuration menu
    Copy the full SHA
    7a2490e View commit details
    Browse the repository at this point in the history
  2. add dry_run check

    beepster4096 authored Jun 16, 2023
    Configuration menu
    Copy the full SHA
    3078de7 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2023

  1. Configuration menu
    Copy the full SHA
    f874345 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52d3fc9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6594c75 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4343d36 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2023

  1. 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
    compiler-errors authored Jun 18, 2023
    Configuration menu
    Copy the full SHA
    6ca3951 View commit details
    Browse the repository at this point in the history
  2. 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`
    compiler-errors authored Jun 18, 2023
    Configuration menu
    Copy the full SHA
    9f4d96f View commit details
    Browse the repository at this point in the history
  3. 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
    compiler-errors authored Jun 18, 2023
    Configuration menu
    Copy the full SHA
    9589d43 View commit details
    Browse the repository at this point in the history
  4. 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`
    compiler-errors authored Jun 18, 2023
    Configuration menu
    Copy the full SHA
    355fe75 View commit details
    Browse the repository at this point in the history
  5. 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`.
    compiler-errors authored Jun 18, 2023
    Configuration menu
    Copy the full SHA
    1d7af9d View commit details
    Browse the repository at this point in the history
  6. 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.
    compiler-errors authored Jun 18, 2023
    Configuration menu
    Copy the full SHA
    09e6d3e View commit details
    Browse the repository at this point in the history
  7. 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.
    compiler-errors authored Jun 18, 2023
    Configuration menu
    Copy the full SHA
    890e0da View commit details
    Browse the repository at this point in the history