mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
make sure aliases are not forgotten
This commit is contained in:
parent
b3dce7317d
commit
1dacf29879
1 changed files with 6 additions and 1 deletions
|
@ -295,7 +295,12 @@ pub fn canonicalize_module_defs<'a>(
|
||||||
// symbols from this set
|
// symbols from this set
|
||||||
let mut exposed_but_not_defined = exposed_symbols.clone();
|
let mut exposed_but_not_defined = exposed_symbols.clone();
|
||||||
|
|
||||||
match sort_can_defs(&mut env, defs, Output::default()) {
|
let new_output = Output {
|
||||||
|
aliases: output.aliases,
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
|
|
||||||
|
match sort_can_defs(&mut env, defs, new_output) {
|
||||||
(Ok(mut declarations), output) => {
|
(Ok(mut declarations), output) => {
|
||||||
use crate::def::Declaration::*;
|
use crate::def::Declaration::*;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue