-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix: Fix implicit ty args being lowered where they shouldn't #17175
Conversation
@@ -662,7 +662,7 @@ impl<'a> Ctx<'a> { | |||
let attrs = RawAttrs::new(self.db.upcast(), ¶m, self.body_ctx.span_map()); | |||
debug_assert!(self.generic_param_attr_buffer.insert(item, attrs).is_none()); | |||
}; | |||
|
|||
self.body_ctx.take_impl_traits_bounds(); |
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.
Issue was basically this line missing. Without it, we start allocating impl trait args for things that are not related to the generic params / where clauses
cc @dfireBird this fixes an issue that your recent PR introduced just so you are aware |
☀️ Test successful - checks-actions |
Fix impl trait params not being counted properly Fixes the other thing in rust-lang/rust-analyzer#17173, this just rolls back a change from rust-lang/rust-analyzer#17175 and adds a comment as to what it does
Fixes #17173