Merge pull request #5055 from roc-lang/abilities-bug-generic

Lambda set compaction must preserve unique specializations of concrete types
This commit is contained in:
Folkert de Vries 2023-02-21 15:24:23 +01:00 committed by GitHub
commit bd6623dab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 1083 additions and 57 deletions

View file

@ -1313,6 +1313,14 @@ impl<'a> Niche<'a> {
]),
}
}
pub fn dbg_deep<'r, I: LayoutInterner<'a>>(
&'r self,
interner: &'r I,
) -> crate::layout::intern::dbg::DbgFields<'a, 'r, I> {
let NichePriv::Captures(caps) = &self.0;
interner.dbg_deep_iter(caps)
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]