Move parse::operator into module::operator

This commit is contained in:
Richard Feldman 2020-05-01 21:57:33 -04:00
parent f47d96e1a4
commit 101dc80ae5
13 changed files with 18 additions and 19 deletions

View file

@ -367,9 +367,11 @@ fn gen(
jump_counter: arena.alloc(0),
};
// Add modules' decls to Procs
for (_, mut decls) in decls_by_id.drain().chain(std::iter::once((loaded.module_id, home_decls))) {
for (_, mut decls) in decls_by_id
.drain()
.chain(std::iter::once((loaded.module_id, home_decls)))
{
for decl in decls.drain(..) {
use roc_can::def::Declaration::*;
use roc_can::expr::Expr::*;