mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
use bitvec-based topological sort
This commit is contained in:
parent
7055645085
commit
b6ccd9c8fb
2 changed files with 496 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
use crate::abilities::AbilitiesStore;
|
||||
use crate::def::{canonicalize_defs, sort_can_defs, Declaration, Def};
|
||||
use crate::def::{canonicalize_defs, sort_can_defs_improved, Declaration, Def};
|
||||
use crate::effect_module::HostedGeneratedFunctions;
|
||||
use crate::env::Env;
|
||||
use crate::expr::{ClosureData, Expr, Output};
|
||||
|
@ -361,7 +361,9 @@ pub fn canonicalize_module_defs<'a>(
|
|||
..Default::default()
|
||||
};
|
||||
|
||||
match sort_can_defs(&mut env, defs, new_output) {
|
||||
let sorted = sort_can_defs_improved(&mut env, defs, new_output);
|
||||
|
||||
match sorted {
|
||||
(Ok(mut declarations), output) => {
|
||||
use crate::def::Declaration::*;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue