-
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 #89172
Rollup of 7 pull requests #89172
Commits on Sep 16, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 77ceb2b - Browse repository at this point
Copy the full SHA 77ceb2bView commit details
Commits on Sep 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for be5a5b7 - Browse repository at this point
Copy the full SHA be5a5b7View commit details -
Work around invalid DWARF bugs for fat LTO
Signed-off-by: Yilin Chen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d5de680 - Browse repository at this point
Copy the full SHA d5de680View commit details
Commits on Sep 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4281380 - Browse repository at this point
Copy the full SHA 4281380View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9fe093 - Browse repository at this point
Copy the full SHA c9fe093View commit details -
Re-enable the
src/test/debuginfo/mutex.rs
test on WindowsThis 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.
Configuration menu - View commit details
-
Copy full SHA for bd5bc49 - Browse repository at this point
Copy the full SHA bd5bc49View commit details -
Revert the rustdoc box syntax removal
It turned out to cause (minor) perf regressions.
Configuration menu - View commit details
-
Copy full SHA for f809ed6 - Browse repository at this point
Copy the full SHA f809ed6View commit details
Commits on Sep 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 71a4add - Browse repository at this point
Copy the full SHA 71a4addView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57399e2 - Browse repository at this point
Copy the full SHA 57399e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 490a8cf - Browse repository at this point
Copy the full SHA 490a8cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for fcb837b - Browse repository at this point
Copy the full SHA fcb837bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for c218643 - Browse repository at this point
Copy the full SHA c218643View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 328306a - Browse repository at this point
Copy the full SHA 328306aView commit details -
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).
Configuration menu - View commit details
-
Copy full SHA for 85de8f9 - Browse repository at this point
Copy the full SHA 85de8f9View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 65fe504 - Browse repository at this point
Copy the full SHA 65fe504View commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for 79c8b1e - Browse repository at this point
Copy the full SHA 79c8b1eView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for 484614a - Browse repository at this point
Copy the full SHA 484614aView commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for c9a066d - Browse repository at this point
Copy the full SHA c9a066dView commit details