incorporate referenced types

This commit is contained in:
Folkert 2022-03-13 16:57:42 +01:00
parent 8bc31e82c3
commit 563ba6acbb
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 5 additions and 4 deletions

View file

@ -24,6 +24,7 @@ pub struct Module {
pub exposed_imports: MutMap<Symbol, Variable>,
pub exposed_symbols: MutSet<Symbol>,
pub referenced_values: MutSet<Symbol>,
pub referenced_types: MutSet<Symbol>,
pub aliases: MutMap<Symbol, Alias>,
pub rigid_variables: MutMap<Variable, Lowercase>,
}
@ -243,7 +244,6 @@ pub fn canonicalize_module_defs<'a>(
&& !output.references.has_type_lookup(symbol)
&& !exposed_symbols.contains(&symbol)
{
dbg!(symbol, region);
env.problem(Problem::UnusedDef(symbol, region));
}
}