iter 22-tidy.4: route 4 matches! sites through is_primitive_name
This commit is contained in:
@@ -140,7 +140,7 @@ use std::collections::HashMap;
|
||||
/// == 0`.
|
||||
fn is_heap_type(t: &Type) -> bool {
|
||||
match t {
|
||||
Type::Con { name, .. } => !matches!(name.as_str(), "Int" | "Bool" | "Str" | "Unit"),
|
||||
Type::Con { name, .. } => !ailang_core::primitives::is_primitive_name(name),
|
||||
// Type::Var (a polymorphic param) is conservatively heap —
|
||||
// it could instantiate to a heap type at the call site.
|
||||
Type::Var { .. } => true,
|
||||
|
||||
Reference in New Issue
Block a user