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 6 pull requests #134550

Merged
merged 18 commits into from
Dec 20, 2024
Merged

Rollup of 6 pull requests #134550

merged 18 commits into from
Dec 20, 2024

Conversation

jhpratt
Copy link
Member

@jhpratt jhpratt commented Dec 20, 2024

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

jan-ferdinand and others added 18 commits August 19, 2024 14:49
Just for slightly more concise code - no functional changes.

r? @wesleywiser
…bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()`
…, r=the8472

docs: Mention `spare_capacity_mut()` in `Vec::set_len`

I recently went down a small rabbit hole when trying to identify safe use of `Vec::set_len`. The solution was `Vec::spare_capacity_mut`. I think the docs on `Vec::set_len` benefit from mentioning this method.

A possible counter-argument could be that the [clippy lint `uninit_vec`](https://rust-lang.github.io/rust-clippy/master/index.html#/uninit_vec) already nudges people in the right direction. However, I think a working example on `Vec::set_len` is still beneficial.

Happy to hear your thoughts on the matter. 😊
…tgross35

Rename `elem_offset` to `element_offset`

Tracking issue: rust-lang#126769

Renames `slice::elem_offset` to `slice::element_offset` and improves the documentation of it and its related methods.

The current documentation can be misinterpreted (as explained [here](rust-lang#126769 (comment))).
Pass FnAbi to find_mir_or_eval_fn

 rust-lang/miri#4013 needs information from ``FnAbi``, hence it is passed to ``find_mir_or_eval_fn``.

r? `@RalfJung`
fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()`
Arbitrary self types v2: roll loop.

Just for slightly more concise code - no functional changes.

r? `@wesleywiser`

Part of rust-lang#44874
@rustbot rustbot added A-rustdoc-json Area: Rustdoc JSON backend S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Dec 20, 2024
@jhpratt
Copy link
Member Author

jhpratt commented Dec 20, 2024

@bors r+ rollup=never p=5

@bors
Copy link
Contributor

bors commented Dec 20, 2024

📌 Commit e6aea1a has been approved by jhpratt

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 20, 2024
@bors
Copy link
Contributor

bors commented Dec 20, 2024

⌛ Testing commit e6aea1a with merge 8a1f803...

@bors
Copy link
Contributor

bors commented Dec 20, 2024

☀️ Test successful - checks-actions
Approved by: jhpratt
Pushing 8a1f803 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 20, 2024
@bors bors merged commit 8a1f803 into rust-lang:master Dec 20, 2024
7 checks passed
@rustbot rustbot added this to the 1.85.0 milestone Dec 20, 2024
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#126118 docs: Mention spare_capacity_mut() in Vec::set_len e20cdb4d22c80cfbcd4eba5af7b074d2d0093660 (link)
#132830 Rename elem_offset to element_offset c861caea1972271484a5c55af553b5ee805fc0d6 (link)
#133103 Pass FnAbi to find_mir_or_eval_fn 33e193567e9a35e3b3fc8d53afd02ba7b4347ace (link)
#134321 Hide = _ as associated constant value inside impl blocks 173e2d5226d737028bec43b87f850ffa8b7bd76e (link)
#134518 fix typos in the example code in the doc comments of `Ipv4A… 3a9cfd15582ffb5db9e3f9c7af6acf54c0c1ed30 (link)
#134521 Arbitrary self types v2: roll loop. baaf705eaebd980645ab9db730d8a2c29326ff44 (link)

previous master: 5dfe648b45

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (8a1f803): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (primary 2.2%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
2.2% [1.2%, 3.3%] 2
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.2% [1.2%, 3.3%] 2

Cycles

Results (primary -1.4%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.4% [-1.8%, -1.2%] 5
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.4% [-1.8%, -1.2%] 5

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 769.305s -> 769.09s (-0.03%)
Artifact size: 330.31 MiB -> 330.24 MiB (-0.02%)

@jhpratt jhpratt deleted the rollup-wsfmo59 branch December 27, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-json Area: Rustdoc JSON backend merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants