-
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
Do not suggest impl traits as type arguments #86338
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #87698) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @estebank |
|
||
/// Returns `true` if `params` has `impl Trait`. | ||
pub fn has_impl_trait(&'tcx self) -> bool { | ||
self.params.iter().any(|param| { |
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.
I guess we could also add an fn is_impl_trait
to param
, but that's not necessary in this PR.
@bors r+ |
📌 Commit b84d08d has been approved by |
☀️ Test successful - checks-actions |
Fixes #86162