mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +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 {
|
for named in output.introduced_variables.named {
|
||||||
rigid_variables.named.insert(named.variable, named.name);
|
rigid_variables.named.insert(named.variable, named.name);
|
||||||
}
|
}
|
||||||
|
@ -444,6 +442,7 @@ pub fn canonicalize_module_defs<'a>(
|
||||||
|
|
||||||
let new_output = Output {
|
let new_output = Output {
|
||||||
aliases: output.aliases,
|
aliases: output.aliases,
|
||||||
|
references: output.references,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -493,6 +492,8 @@ pub fn canonicalize_module_defs<'a>(
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
report_unused_imports(imports_introduced, &output.references, &mut env, &mut scope);
|
||||||
|
|
||||||
if let GeneratedInfo::Hosted {
|
if let GeneratedInfo::Hosted {
|
||||||
effect_symbol,
|
effect_symbol,
|
||||||
generated_functions,
|
generated_functions,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue