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 #89172

Closed
wants to merge 18 commits into from
Closed

Commits on Sep 16, 2021

  1. Make Duration's Debug format pad to width

    Duration's Debug formatting previously ignored the width parameter.
    This commit fixes that.
    
    Fixes issue rust-lang#88059.
    michiel-de-muynck committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    77ceb2b View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2021

  1. Configuration menu
    Copy the full SHA
    be5a5b7 View commit details
    Browse the repository at this point in the history
  2. Work around invalid DWARF bugs for fat LTO

    Signed-off-by: Yilin Chen <[email protected]>
    sticnarf committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    d5de680 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2021

  1. Add some more tracing

    oli-obk committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    4281380 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9fe093 View commit details
    Browse the repository at this point in the history
  3. Re-enable the src/test/debuginfo/mutex.rs test on Windows

    This test required a newer version of cdb than was previously enabled in
    CI thus leading to some bitrot in the test since the time it was
    originally created. With the update to the `windows-latest` image last
    week, we're now running this test in CI and thus uncovered the
    regression.
    
    I've updated the test and it now passes.
    wesleywiser committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    bd5bc49 View commit details
    Browse the repository at this point in the history
  4. Revert the rustdoc box syntax removal

    It turned out to cause (minor) perf regressions.
    est31 committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    f809ed6 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2021

  1. Configuration menu
    Copy the full SHA
    71a4add View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    57399e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    490a8cf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fcb837b View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#88999 - Migi:master, r=oli-obk

    Make `Duration` respect `width` when formatting using `Debug`
    
    When printing or writing a `std::time::Duration` using `Debug` formatting, it previously completely ignored any specified `width`. This is unlike types like integers and floats, which do pad to `width`, for both `Display` and `Debug`, though not all types consider `width` in their `Debug` output (see e.g. rust-lang#30164). Curiously, `Duration`'s `Debug` formatting *did* consider `precision`.
    
    This PR makes `Duration` pad to `width` just like integers and floats, so that
    ```rust
    format!("|{:8?}|", Duration::from_millis(1234))
    ```
    returns
    ```
    |1.234s  |
    ```
    
    Before you ask "who formats `Debug` output?", note that `Duration` doesn't actually implement `Display`, so `Debug` is currently the only way to format `Duration`s. I think that's wrong, and `Duration` should get a `Display` implementation, but in the meantime there's no harm in making the `Debug` formatting respect `width` rather than ignore it.
    
    I chose the default alignment to be left-aligned. The general rule Rust uses is: numeric types are right-aligned by default, non-numeric types left-aligned. It wasn't clear to me whether `Duration` is a numeric type or not. The fact that a formatted `Duration` can end with suffixes of variable length (`"s"`, `"ms"`, `"µs"`, etc.) made me lean towards left-alignment, but it would be trivial to change it.
    
    Fixes issue rust-lang#88059.
    the8472 authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    c218643 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#89036 - nbdd0121:alloc, r=yaahc

    Fix missing `no_global_oom_handling` cfg-gating
    
    Cfg-gate these trait impls that are neglected.
    
    These functions compile now because they use `box` syntax which depends on `exchange_malloc` during codegen only; as a result they compiles with cfg `no_global_oom_handling` but shouldn't.
    
    Discovered in rust-lang#89030 because that PR makes `box` syntax depend on `exchange_malloc` lang item during MIR construction.
    the8472 authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    328306a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#89041 - sticnarf:sticnarf/fat-lto-dwarf, r=…

    …nagisa
    
    Work around invalid DWARF bugs for fat LTO
    
    This PR applies the same workaround in rust-lang#46772 to fat LTO.
    
    It seems to fix the bug reported in rust-lang#66118 (comment).
    the8472 authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    85de8f9 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#89046 - oli-obk:fix_oflo, r=estebank

    "Fix" an overflow in byte position math
    
    r? `@estebank`
    
    help! I fixed the ICE only to brick the diagnostic.
    
    I mean, it was wrong previously (using an already expanded macro span), but it is really bad now XD
    the8472 authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    65fe504 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#89127 - wesleywiser:reenable_mutex_debuginf…

    …o_test, r=ehuss
    
    Re-enable the `src/test/debuginfo/mutex.rs` test on Windows
    
    This test required a newer version of cdb than was previously enabled in
    CI thus leading to some bitrot in the test since the time it was
    originally created. With the update to the `windows-latest` image last
    week, we're now running this test in CI and thus uncovered the
    regression.
    
    I've updated the test and it now passes.
    
    r? `@ehuss`
    the8472 authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    79c8b1e View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#89134 - est31:revert_rustdoc_box_syntax, r=…

    …GuillaumeGomez
    
    Revert the rustdoc box syntax removal
    
    Reverts the rustdoc box syntax removal from rust-lang#87781.
    
    It turned out to cause (minor) perf regressions.
    
    Requested in rust-lang#87781 (comment)
    the8472 authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    484614a View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#89164 - camelid:show-type-layout-docs, r=jy…

    …n514
    
    Document `--show-type-layout` in the rustdoc book
    
    I also made a few small, related changes as separate commits.
    
    r? `@jyn514`
    the8472 authored Sep 22, 2021
    Configuration menu
    Copy the full SHA
    c9a066d View commit details
    Browse the repository at this point in the history