-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Display ?Sized, const, and lifetime parameters in trait item suggestions across a crate boundary #146442
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
late bound lifetimes seem... very difficult to implement here, and also somewhat interesting because we don't actually require the set of late bound lifetimes on the impl to exactly match the set on the trait definition. so I think it doesn't make sense to list them 🤔
f336c23
to
8e09acd
Compare
8e09acd
to
1a15108
Compare
@rustbot ready |
@bors r+ rollup |
Rollup of 5 pull requests Successful merges: - #146442 (Display ?Sized, const, and lifetime parameters in trait item suggestions across a crate boundary) - #146474 (Improve `core::ascii` coverage) - #146605 (Bump rustfix 0.8.1 -> 0.8.7) - #146611 (bootstrap: emit hint if a config key is used in the wrong section) - #146618 (Do not run ui test if options specific to LLVM are used when another codegen backend is used) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #146442 - Qelxiros:trait-suggestion-generics, r=BoxyUwU Display ?Sized, const, and lifetime parameters in trait item suggestions across a crate boundary context: #145929 This fixes the MetaSized issue and adds const generics and early bound lifetimes. Late bound lifetimes are harder because they aren't returned by `generics_of`. I'm going to look into it, but there's no guarantee I'll be successful. Fixes #146404. r? `@BoxyUwu`
context: #145929
This fixes the MetaSized issue and adds const generics and early bound lifetimes. Late bound lifetimes are harder because they aren't returned by
generics_of
. I'm going to look into it, but there's no guarantee I'll be successful.Fixes #146404.
r? @BoxyUwU