-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 5 pull requests #70816
Rollup of 5 pull requests #70816
Conversation
This improves the performance of drain_filter and is needed for future Cursor support for BTreeMap.
…=nikomatsakis Query-ify Instance::resolve Split off from rust-lang#65989 Instance::resolve is now a wrapper for a new `resolve_instance` query. This greatly improves performance on several benchmarks
Don't import integer and float modules, use assoc consts Stop importing the standard library integer and float modules to reach the `MIN`, `MAX` and other constants. They are available directly on the primitive types now. This PR is a follow up of rust-lang#69860 which made sure we use the new constants in documentation. This type of change touches a lot of files, and previously all my assoc int consts PRs had collisions and were accepted only after a long delay. So I'd prefer to do it in smaller steps now. Just removing these imports seem like a good next step. r? @dtolnay
…rk-Simulacrum Keep track of position when deleting from a BTreeMap This improves the performance of drain_filter and is needed for future Cursor support for BTreeMap. cc @ssomers r? @Mark-Simulacrum
…r=LukasKalbertodt Do not use "nil" to refer to `()` "nil" is not used in the [book](https://doc.rust-lang.org/book) or in the [standard library](https://doc.rust-lang.org/std) anywhere else. Because "nil" is often used in programming languages to refer to "None" or "null" I think it could be a little confusing for newcomers to see this type referred to as "nil".
…evink Enable layout debugging for `impl Trait` type aliases I also made it print the actual type name that the alias picks under the hood.
@bors r+ p=5 rollup=never |
📌 Commit 8c081f6 has been approved by |
☀️ Test successful - checks-azure |
One of these commits caused some huge improvements to some @Aaron1011: is this because of #67797? |
@nnethercote: Yes, I believe so. I had previously done several perf runs for #67797, which showed large speedups for 'patched-incremental'. |
Successful merges:
()
#70812 (Do not use "nil" to refer to()
)impl Trait
type aliases #70815 (Enable layout debugging forimpl Trait
type aliases)Failed merges:
r? @ghost