-
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 8 pull requests #90416
Rollup of 8 pull requests #90416
Conversation
# Conflicts: # library/core/src/lib.rs
Make most std::ops traits const on numeric types This PR makes existing implementations of `std::ops` traits (`Add`, `Sub`, etc) [`impl const`](rust-lang#67792) where possible. This affects: - All numeric primitives (`u*`, `i*`, `f*`) - `NonZero*` - `Wrapping` This is under the `rustc_const_unstable` feature `const_ops`. I will write tests once I know what can and can't be kept for the final version of this PR. Since this is my first PR to rustc (and hopefully one of many), please give me feedback on how to better handle the PR process wherever possible. Thanks [Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Const.20std.3A.3Aops.20traits.20PR)
Fix incorrect doc link Looks like a copy paste mistake
…itles, r=camelid Unify titles in rustdoc book doc attributes chapter As discussed in rust-lang#90339. I wasn't able to find out where the link to the titles was used so let's see if the CI fails. :) r? ``@camelid``
…arts, r=oli-obk Make `core::slice::from_raw_parts[_mut]` const Responses to rust-lang#90012 seem to allow ``@rust-lang/wg-const-eval`` to decide on use of `const_eval_select`, so we can make `core::slice::from_raw_parts[_mut]` const :) --- This PR marks the following APIs as const: ```rust // core::slice pub const unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T]; pub const unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T]; ``` --- Resolves rust-lang#90011 r? ``@oli-obk``
…=oli-obk Restrict liveness of mutable borrow of inner infcx in ConstInferUnifier::consts Fixes rust-lang#89304 r? ``@oli-obk``
…n_consts, r=lcnr Prevent type flags assertions being thrown in default_anon_const_substs if errors occurred Fixes rust-lang#90364 Fixes rust-lang#88997 r? ``@lcnr``
…li-obk Add a few query descriptions
Remove unnecessary `macro_use`s in rustdoc
@bors r+ p=8 rollup=never |
📌 Commit 19b5b0f has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (9f13083): comparison url. Summary: This change led to large relevant regressions 😿 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression |
All the significant perf regressions are to doc generation. (Which many do seem to have regressed by 1.0-2.7%.) |
not just the doc regressions are significant, the opt ones are smaller but non-noise |
Successful merges:
core::slice::from_raw_parts[_mut]
const #90377 (Makecore::slice::from_raw_parts[_mut]
const)macro_use
s in rustdoc #90412 (Remove unnecessarymacro_use
s in rustdoc)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup