fix: Fix implicit ty args being lowered where they shouldn't

This commit is contained in:
Lukas Wirth 2024-05-02 11:53:53 +02:00
parent cfce2bb46d
commit 8241d8a0b8
4 changed files with 116 additions and 120 deletions

View file

@ -662,7 +662,7 @@ impl<'a> Ctx<'a> {
let attrs = RawAttrs::new(self.db.upcast(), &param, self.body_ctx.span_map());
debug_assert!(self.generic_param_attr_buffer.insert(item, attrs).is_none());
};
self.body_ctx.take_impl_traits_bounds();
let mut generics = GenericParamsCollector::default();
if let HasImplicitSelf::Yes(bounds) = has_implicit_self {