Add comment for is_function

This commit is contained in:
Ayaz Hafiz 2022-12-01 11:04:18 -06:00
parent 0e74cc14cc
commit 22a84c8b21
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -2135,6 +2135,8 @@ impl Subs {
is_inhabited(self, var)
}
/// Is the ground constructor (in the layout-determination sense) of this type a function?
/// That is, is this a function modulo aliases and opaques?
pub fn is_function(&self, mut var: Variable) -> bool {
loop {
match self.get_content_without_compacting(var) {