-
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
Check generics parity before collecting return-position impl Trait
s in trait
#104295
Check generics parity before collecting return-position impl Trait
s in trait
#104295
Conversation
r? @eholk (rustbot has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #104310) made this pull request unmergeable. Please resolve the merge conflicts. |
b6abaaf
to
2ce39aa
Compare
This comment has been minimized.
This comment has been minimized.
55b4426
to
96355cd
Compare
☔ The latest upstream changes (presumably #104600) made this pull request unmergeable. Please resolve the merge conflicts. |
Looks good. Thanks for the extra comments as well! I think I'd prefer to see the error deduplicated here rather than relying on cargo, but if it's really annoying to do that I think it's fine this way. Your choice. Feel free to r=me after resolving the merge conflicts. |
96355cd
to
df5f247
Compare
@bors r=eholk |
Rollup of 6 pull requests Successful merges: - rust-lang#104295 (Check generics parity before collecting return-position `impl Trait`s in trait) - rust-lang#104464 (Reduce exceptions overallocation on non Windows x86_64) - rust-lang#104615 (Create def_id for async fns during lowering) - rust-lang#104669 (Only declare bindings for if-let guards once per arm) - rust-lang#104701 (Remove a lifetime resolution hack from `compare_predicate_entailment`) - rust-lang#104710 (disable strict-provenance-violating doctests in Miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
The only thing is that this duplicates the error message for number of generics mismatch, but we already deduplicate that error message in Cargo. I could add a flag to delay the error if the reviewer cares.
Fixes #104281
Also drive-by adds a few comments to the
collect_trait_impl_trait_tys
method, and removes an unused argument fromcompare_number_of_generics
.