check inside a lambda set for whether it is reference counted

This commit is contained in:
Folkert 2023-07-26 20:06:37 +02:00
parent 73ffce0baa
commit 334253f47f
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
7 changed files with 34 additions and 31 deletions

View file

@ -228,7 +228,7 @@ pub trait LayoutInterner<'a>: Sized {
}
fn is_refcounted(&self, layout: InLayout<'a>) -> bool {
self.get_repr(layout).is_refcounted()
self.get_repr(layout).is_refcounted(self)
}
fn is_nullable(&self, layout: InLayout<'a>) -> bool {