-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 7 pull requests #91792
Rollup of 7 pull requests #91792
Conversation
At first, you might think, "Why not just click through to the aliased type?" But, if a type alias instantiates all of the generic parameters of the aliased type, then it can show layout info even though the aliased type cannot (because we can't compute layout for generic types). So, I think it's useful to show layout info for type aliases. This is a followup of 78d4b453ad2e19d44011b26fc55c949bff5dba3d (originally part of rust-lang#83501).
This commit does the following. - Expands on some of the things already mentioned in comments. - Describes the uniqueness assumption, which is critical but wasn't mentioned at all. - Rewrites `empty()` into a clearer form, as provided by Daniel Henry-Mantilla on Zulip. - Reorders things slightly so that more important things are higher up, and incidental things are lower down, which makes reading the code easier.
Co-authored-by: Joshua Nelson <github@jyn.dev>
Update library/core/src/iter/adapters/zip.rs Co-authored-by: r00ster <r00ster91@protonmail.com> Update library/core/src/iter/adapters/zip.rs Co-authored-by: r00ster <r00ster91@protonmail.com>
…y, r=lcnr Improve the readability of `List<T>`. This commit does the following. - Expands on some of the things already mentioned in comments. - Describes the uniqueness assumption, which is critical but wasn't mentioned at all. - Rewrites `empty()` into a clearer form, as provided by Daniel Henry-Mantilla on Zulip. - Reorders things slightly so that more important things are higher up, and incidental things are lower down, which makes reading the code easier. r? ````@lcnr````
Simplify collection of in-band lifetimes Split from rust-lang#91403 r? ````@oli-obk````
rustdoc: Show type layout for type aliases Fixes rust-lang#91265. At first, you might think, "Why not just click through to the aliased type?" But, if a type alias instantiates all of the generic parameters of the aliased type, then it can show layout info even though the aliased type cannot (because we can't compute layout for generic types). So, I think it's useful to show layout info for type aliases. This is a followup of 78d4b453ad2e19d44011b26fc55c949bff5dba3d (originally part of rust-lang#83501).
… r=Mark-Simulacrum Improve `std::iter::zip` example `println!` isn't great for doc comments / tests.
Add deprecation warning for --passes Issue rust-lang#91713 mentored by ```@jyn514```
…gisa give more help in the unaligned_references lint Cc rust-lang#82523 (comment) ``@kaisq``
… r=jyn514 Correct since attribute for `is_symlink` feature Follow-up from [89677](rust-lang#89677)
@bors r+ rollup=never p=7 |
📌 Commit bb23d82 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b8dc6aa): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Successful merges:
List<T>
. #91617 (Improve the readability ofList<T>
.)std::iter::zip
example #91711 (Improvestd::iter::zip
example)is_symlink
feature #91782 (Correct since attribute foris_symlink
feature)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup