mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
Report unused imports after canonicalizing platform requires ann
This commit is contained in:
parent
d952d5576a
commit
6006669702
1 changed files with 3 additions and 2 deletions
|
@ -407,8 +407,6 @@ pub fn canonicalize_module_defs<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
report_unused_imports(imports_introduced, &output.references, &mut env, &mut scope);
|
||||
|
||||
for named in output.introduced_variables.named {
|
||||
rigid_variables.named.insert(named.variable, named.name);
|
||||
}
|
||||
|
@ -444,6 +442,7 @@ pub fn canonicalize_module_defs<'a>(
|
|||
|
||||
let new_output = Output {
|
||||
aliases: output.aliases,
|
||||
references: output.references,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
@ -493,6 +492,8 @@ pub fn canonicalize_module_defs<'a>(
|
|||
})
|
||||
.collect();
|
||||
|
||||
report_unused_imports(imports_introduced, &output.references, &mut env, &mut scope);
|
||||
|
||||
if let GeneratedInfo::Hosted {
|
||||
effect_symbol,
|
||||
generated_functions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue