Rollup of 5 pull requests#155583
Conversation
Fix redundant boolean comparison in `Mutex::try_lock` Simplify boolean return in `Mutex::try_lock`. Replace `expr == false` with `!expr` for cleaner code.
…ratt Clarify that isqrt returns the principal (non-negative) square root Clarify which root is returned from `isqrt` and `checked_isqrt` Fixes: rust-lang#154000 Previous PRs: rust-lang#154462
add safety doc (section header) to two unsafe methods in `NonZero` This PR adds a Safety section to two unsafe methods in `NonZero`: - [unchecked_add](https://doc.rust-lang.org/nightly/core/num/struct.NonZero.html#method.unchecked_add) - [unchecked_mul](https://doc.rust-lang.org/nightly/core/num/struct.NonZero.html#method.unchecked_mul) The safety documentation is now consistent with that of [`u8::unchecked_add`](https://doc.rust-lang.org/nightly/core/primitive.u8.html#method.unchecked_add) and [`u8::unchecked_mul`](https://doc.rust-lang.org/nightly/core/primitive.u8.html#method.unchecked_mul).
…ult/cstr, r=jhpratt Implement const Default for &CStr Implements `const Default` for `&CStr`. Tracking issue: rust-lang#143894.
…ratt constify `Vec` comparisons Tracking Issue: rust-lang#143800 Due to `Cow` not implementing `const Deref` (rust-lang#147964), the comparisons including a `Cow` were not constified.
|
@bors r+ rollup=never p=5 |
This comment has been minimized.
This comment has been minimized.
|
📌 Perf builds for each rolled up PR:
previous master: 9ab01ae53c In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 9ab01ae (parent) -> 93637f3 (this PR) Test differencesShow 3069 test diffsStage 1
Stage 2
Additionally, 3067 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 93637f398f4d0d40badc6bf1ed3f241499d06f88 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (93637f3): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (primary 2.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -3.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 490.352s -> 492.256s (0.39%) |
Successful merges:
Mutex::try_lock#155532 (Fix redundant boolean comparison inMutex::try_lock)NonZero#155559 (add safety doc (section header) to two unsafe methods inNonZero)Veccomparisons #155565 (constifyVeccomparisons)r? @ghost
Create a similar rollup