mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Address some unused warnings via TODOs
This commit is contained in:
parent
33a5f36d7c
commit
64fd0ceed9
2 changed files with 8 additions and 0 deletions
|
@ -456,6 +456,8 @@ fn gen(
|
|||
let mut headers = Vec::with_capacity(procs.len());
|
||||
let (mut proc_map, runtime_errors) = procs.into_map();
|
||||
|
||||
assert_eq!(runtime_errors, roc_collections::all::MutSet::default());
|
||||
|
||||
// Add all the Proc headers to the module.
|
||||
// We have to do this in a separate pass first,
|
||||
// because their bodies may reference each other.
|
||||
|
|
|
@ -265,6 +265,12 @@ pub fn gen(src: &str, target: Triple, opt_level: OptLevel) -> Result<(String, St
|
|||
let mut headers = Vec::with_capacity(procs.len());
|
||||
let (mut proc_map, runtime_errors) = procs.into_map();
|
||||
|
||||
assert_eq!(
|
||||
runtime_errors,
|
||||
roc_collections::all::MutSet::default(),
|
||||
"TODO code gen runtime exception functions"
|
||||
);
|
||||
|
||||
// Add all the Proc headers to the module.
|
||||
// We have to do this in a separate pass first,
|
||||
// because their bodies may reference each other.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue