-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Rollup of 6 pull requests #134550
Conversation
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`
Hide `= _` as associated constant value inside impl blocks Closes rust-lang#134320. ### Before: <img src="https://github.com/user-attachments/assets/19d28811-45d2-4563-9726-f40c6af411c6" width="300"> <img src="https://github.com/user-attachments/assets/1ecf8764-97ce-47f0-87fa-3b174d2fc578" width="300"> ### After: <img src="https://github.com/user-attachments/assets/6408c4ca-b1c4-42e4-884b-248833a4865f" width="300"> <img src="https://github.com/user-attachments/assets/df2f6981-16f6-409f-8abb-73c0a4a71d6b" width="300"> r? `@fmease`
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
@bors r+ rollup=never p=5 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR:
previous master: 5dfe648b45 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (8a1f803): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis 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.
CyclesResults (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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 769.305s -> 769.09s (-0.03%) |
Successful merges:
spare_capacity_mut()
inVec::set_len
#126118 (docs: Mentionspare_capacity_mut()
inVec::set_len
)elem_offset
toelement_offset
#132830 (Renameelem_offset
toelement_offset
)= _
as associated constant value inside impl blocks #134321 (Hide= _
as associated constant value inside impl blocks)Ipv4Addr::from_bits()
,Ipv6Addr::from_bits()
&Ipv6Addr::to_bits()
#134518 (fix typos in the example code in the doc comments ofIpv4Addr::from_bits()
,Ipv6Addr::from_bits()
&Ipv6Addr::to_bits()
)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup