make sure aliases are not forgotten

This commit is contained in:
Folkert 2022-03-16 14:36:24 +01:00
parent b3dce7317d
commit 1dacf29879
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -295,7 +295,12 @@ pub fn canonicalize_module_defs<'a>(
// symbols from this set
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) => {
use crate::def::Declaration::*;