-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 8 pull requests #104591
Rollup of 8 pull requests #104591
Commits on Oct 12, 2022
-
remove HRTB from
[T]::is_sorted_by{,_key}
Lukas Markeffsky committedOct 12, 2022 Configuration menu - View commit details
-
Copy full SHA for a02ec4c - Browse repository at this point
Copy the full SHA a02ec4cView commit details -
Lukas Markeffsky committed
Oct 12, 2022 Configuration menu - View commit details
-
Copy full SHA for f3d7b39 - Browse repository at this point
Copy the full SHA f3d7b39View commit details
Commits on Oct 22, 2022
-
Fix mod_inv termination for the last iteration
On usize=u64 platforms, the 4th iteration would overflow the `mod_gate` back to 0. Similarly for usize=u32 platforms, the 3rd iteration would overflow much the same way. I tested various approaches to resolving this, including approaches with `saturating_mul` and `widening_mul` to a double usize. Turns out LLVM likes `mul_with_overflow` the best. In fact now, that LLVM can see the iteration count is limited, it will happily unroll the loop into a nice linear sequence. You will also notice that the code around the loop got simplified somewhat. Now that LLVM is handling the loop nicely, there isn’t any more reasons to manually unroll the first iteration out of the loop (though looking at the code today I’m not sure all that complexity was necessary in the first place). Fixes rust-lang#103361
Configuration menu - View commit details
-
Copy full SHA for a3c3f72 - Browse repository at this point
Copy the full SHA a3c3f72View commit details
Commits on Oct 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3b16c04 - Browse repository at this point
Copy the full SHA 3b16c04View commit details
Commits on Oct 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6c54745 - Browse repository at this point
Copy the full SHA 6c54745View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3b5192 - Browse repository at this point
Copy the full SHA d3b5192View commit details
Commits on Nov 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9d4b1f9 - Browse repository at this point
Copy the full SHA 9d4b1f9View commit details
Commits on Nov 17, 2022
-
Edit docs for
rustc_errors::Handler::stash_diagnostic
Clarify that the diagnostic can be retrieved with `steal_diagnostic`.
Configuration menu - View commit details
-
Copy full SHA for 19b63bc - Browse repository at this point
Copy the full SHA 19b63bcView commit details -
rustdoc: use
code-header
class to format enum variantsThe font size and weights should be exactly the same after this commit, but the spacing is changed to be exactly the same as methods.
Configuration menu - View commit details
-
Copy full SHA for 4525eb1 - Browse repository at this point
Copy the full SHA 4525eb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 616f34e - Browse repository at this point
Copy the full SHA 616f34eView commit details
Commits on Nov 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for da3c539 - Browse repository at this point
Copy the full SHA da3c539View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3da04a - Browse repository at this point
Copy the full SHA b3da04aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39e076a - Browse repository at this point
Copy the full SHA 39e076aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42d3bda - Browse repository at this point
Copy the full SHA 42d3bdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for a775004 - Browse repository at this point
Copy the full SHA a775004View commit details -
Configuration menu - View commit details
-
Copy full SHA for bde2f98 - Browse repository at this point
Copy the full SHA bde2f98View commit details -
Configuration menu - View commit details
-
Copy full SHA for d15b020 - Browse repository at this point
Copy the full SHA d15b020View commit details -
Configuration menu - View commit details
-
Copy full SHA for 707c035 - Browse repository at this point
Copy the full SHA 707c035View commit details -
Configuration menu - View commit details
-
Copy full SHA for b21e0b8 - Browse repository at this point
Copy the full SHA b21e0b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b22cb90 - Browse repository at this point
Copy the full SHA b22cb90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2721e40 - Browse repository at this point
Copy the full SHA 2721e40View commit details -
Rollup merge of rust-lang#102977 - lukas-code:is-sorted-hrtb, r=m-ou-se
remove HRTB from `[T]::is_sorted_by{,_key}` Changes the signature of `[T]::is_sorted_by{,_key}` to match `[T]::binary_search_by{,_key}` and make code like rust-lang#53485 (comment) compile. Tracking issue: rust-lang#53485 ~~Do we need an ACP for something like this?~~ Edit: Filed ACP here: rust-lang/libs-team#121
Configuration menu - View commit details
-
Copy full SHA for 8aca6cc - Browse repository at this point
Copy the full SHA 8aca6ccView commit details -
Rollup merge of rust-lang#103378 - nagisa:fix-infinite-offset, r=scot…
…tmcm Fix mod_inv termination for the last iteration On usize=u64 platforms, the 4th iteration would overflow the `mod_gate` back to 0. Similarly for usize=u32 platforms, the 3rd iteration would overflow much the same way. I tested various approaches to resolving this, including approaches with `saturating_mul` and `widening_mul` to a double usize. Turns out LLVM likes `mul_with_overflow` the best. In fact now, that LLVM can see the iteration count is limited, it will happily unroll the loop into a nice linear sequence. You will also notice that the code around the loop got simplified somewhat. Now that LLVM is handling the loop nicely, there isn’t any more reasons to manually unroll the first iteration out of the loop (though looking at the code today I’m not sure all that complexity was necessary in the first place). Fixes rust-lang#103361
Configuration menu - View commit details
-
Copy full SHA for 6b09d60 - Browse repository at this point
Copy the full SHA 6b09d60View commit details -
Rollup merge of rust-lang#103456 - scottmcm:fix-unchecked-shifts, r=s…
…cottmcm `unchecked_{shl|shr}` should use `u32` as the RHS The other shift methods, such as https://doc.rust-lang.org/nightly/std/primitive.u64.html#method.checked_shr and https://doc.rust-lang.org/nightly/std/primitive.i16.html#method.wrapping_shl, use `u32` for the shift amount. That's consistent with other things, like `count_ones`, which also always use `u32` for a bit count, regardless of the size of the type. This PR changes `unchecked_shl` and `unchecked_shr` to also use `u32` for the shift amount (rather than Self). cc rust-lang#85122, the `unchecked_math` tracking issue
Configuration menu - View commit details
-
Copy full SHA for e230115 - Browse repository at this point
Copy the full SHA e230115View commit details -
Rollup merge of rust-lang#103701 - WaffleLapkin:__points-at-implement…
…ation__--this-can-be-simplified, r=scottmcm Simplify some pointer method implementations - Make `pointer::with_metadata_of` const (+simplify implementation) (cc rust-lang#75091) - Simplify implementation of various pointer methods r? ```@scottmcm``` ---- `from_raw_parts::<T>(this, metadata(self))` was annoying me for a while and I've finally figured out how it should _actually_ be done.
Configuration menu - View commit details
-
Copy full SHA for 19efa25 - Browse repository at this point
Copy the full SHA 19efa25View commit details -
Rollup merge of rust-lang#104047 - crlf0710:icu_based_list_formatting…
…, r=davidtwco Diagnostics `icu4x` based list formatting. This adds a new kind of `DiagnosticArg` and add the ability to convert it to a `FluentValue::Custom`. When emitting fluent output, it makes use of `ListFormatter` from `icu4x` project to convert it to localized version of list following the fluent locale, as a kind of eager translation. Tested locally with locales like `en`, `ja`, etc, and they work fine. <del>Though neither `zh-CN` nor `zh-Hans` works correctly, it seems they fallback to `und` locale somehow, emitting only comma-based list. I believe this is an internal issue of `icu4x` itself.</del>(Works fine after rust-lang#104047 (comment)) Would love to hear what others think. r? `@davidtwco` cc `@Manishearth`
Configuration menu - View commit details
-
Copy full SHA for 3181006 - Browse repository at this point
Copy the full SHA 3181006View commit details -
Rollup merge of rust-lang#104338 - compiler-errors:pointer-sized, r=e…
…holk Enforce that `dyn*` coercions are actually pointer-sized Implement a perma-unstable, rudimentary `PointerSized` trait to enforce `dyn*` casts are `usize`-sized for now, at least to prevent ICEs and weird codegen issues from cropping up after monomorphization since currently we enforce *nothing*. This probably can/should be removed in favor of a more sophisticated trait for handling `dyn*` conversions when we decide on one, but I just want to get something up for discussion and experimentation for now. r? ```@eholk``` cc ```@tmandry``` (though feel free to claim/reassign) Fixes rust-lang#102141 Fixes rust-lang#102173
Configuration menu - View commit details
-
Copy full SHA for 24ee599 - Browse repository at this point
Copy the full SHA 24ee599View commit details -
Rollup merge of rust-lang#104498 - pierwill:stash-diag-docs, r=compil…
…er-errors Edit docs for `rustc_errors::Handler::stash_diagnostic` Clarify that the diagnostic can be retrieved with `steal_diagnostic`. r? ```@compiler-errors```
Configuration menu - View commit details
-
Copy full SHA for a065e97 - Browse repository at this point
Copy the full SHA a065e97View commit details -
Rollup merge of rust-lang#104556 - notriddle:notriddle/variant, r=Gui…
…llaumeGomez rustdoc: use `code-header` class to format enum variants The font size and weights should be exactly the same after this PR, but the spacing is changed to be the same as methods. Preview: http://notriddle.com/notriddle-rustdoc-demos/variant/test_dingus_enum/enum.TestEnum.html
Configuration menu - View commit details
-
Copy full SHA for 9db23f8 - Browse repository at this point
Copy the full SHA 9db23f8View commit details