-
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 8 pull requests #135319
Rollup of 8 pull requests #135319
Conversation
I've removed the cryptic message about not being able to call `&mut self` methods while retaining a shared borrow of the iterator, such as `as_slice` produces. This is just normal borrowing rules and does not seem especially relevant here. I can whip up a replacement if someone thinks it has value.
The comment says that the expression involves no function call, but that was only true for the example above, the example here _does_ contain a function call.
previously field ordering was using the same seed for all instances of Foo, now we pass seed values through the layout tree so that not only the struct itself affects layout but also its fields
…kingjubilee `-Zrandomize-layout` harder. `Foo<T> != Foo<U>` Tracking issue: rust-lang#106764 Previously randomize-layout only used a deterministic shuffle based on the seed stored in an Adt's ReprOptions, meaning that `Foo<T>` and `Foo<U>` were shuffled by the same seed. This change adds a similar seed to each calculated LayoutData so that a struct can be randomized both based on the layout of its fields and its per-type seed. Primitives start with simple seed derived from some of their properties. Though some types can no longer be distinguished at that point, e.g. usize and u64 will still be treated the same.
Improve prose around `as_slice` example of IterMut I've removed the cryptic message about not being able to call `&mut self` methods while retaining a shared borrow of the iterator, such as `as_slice` produces. This is just normal borrowing rules and does not seem especially relevant here. I can whip up a replacement if someone thinks it has value.
…able-docs, r=jieyouxu Add `default_field_values` entry to unstable book Tracking issue: rust-lang#132162 RFC: https://github.com/rust-lang/rfcs/blob/master/text/3681-default-field-values.md
…eemdev Fix `ptr::from_ref` documentation example comment The comment says that the expression involves no function call, but that was only true for the example above, the example here _does_ contain a function call. ``@rustbot`` label A-docs
…otes, r=BoxyUwU Add Pin::as_deref_mut to 1.84 relnotes Resolves rust-lang#131243 - I think this got missed in the relnotes sweep or something. ``@rustbot`` label relnotes
Make `bare-fn-no-impl-fn-ptr-99875` test less dependent on path width This sets diagnostic-width to some arbitrary number. Seems to work on my machine.
…iler-errors Add tests cases from review of rust-lang#132289 Adding my comments as test-cases as suggested by ``@jackh726`` in rust-lang#132289 (comment)
…-obk Make sure to walk into nested const blocks in `RegionResolutionVisitor` Fixes rust-lang#135306 I tried auditing the rest of the visitors that called `.visit_body`, and it seems like this is the only one that was missing it. I wonder if we should modify intravisit (specifcially, that `NestedBodyFilter` stuff) to make this less likely to happen, tho... r? oli-obk
@bors r+ rollup=never p=8 |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR:
previous master: 88ab2d8acb In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (67951d9): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary -0.1%)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 (secondary 4.9%)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: 762.519s -> 763.376s (0.11%) |
Successful merges:
-Zrandomize-layout
harder.Foo<T> != Foo<U>
#133088 (-Zrandomize-layout
harder.Foo<T> != Foo<U>
)as_slice
example of IterMut #134619 (Improve prose aroundas_slice
example of IterMut)default_field_values
entry to unstable book #134855 (Adddefault_field_values
entry to unstable book)ptr::from_ref
documentation example comment #134908 (Fixptr::from_ref
documentation example comment)bare-fn-no-impl-fn-ptr-99875
test less dependent on path width #135294 (Makebare-fn-no-impl-fn-ptr-99875
test less dependent on path width)RegionResolutionVisitor
#135308 (Make sure to walk into nested const blocks inRegionResolutionVisitor
)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup