mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
incorporate referenced types
This commit is contained in:
parent
8bc31e82c3
commit
563ba6acbb
2 changed files with 5 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue