remove alias

This commit is contained in:
faldor20 2024-02-13 15:27:44 +10:00 committed by Eli Dowling
parent 3561d66f62
commit 6d3fd89f8e
4 changed files with 3 additions and 17 deletions

View file

@ -41,9 +41,8 @@ impl<'a> Formattable for Pattern<'a> {
fn is_multiline(&self) -> bool {
// Theory: a pattern should only be multiline when it contains a comment
match self {
Pattern::SpaceBefore(_, spaces) | Pattern::SpaceAfter(_, spaces) => {
//TODO: This isn't always true, should it be?
// debug_assert!(!spaces.is_empty());
Pattern::SpaceBefore(a, spaces) | Pattern::SpaceAfter(a, spaces) => {
debug_assert!(!spaces.is_empty(), "spaces is empty in pattern {:#?}", a);
spaces.iter().any(|s| s.is_comment())
}

View file

@ -2745,7 +2745,6 @@ fn update<'a>(
state.module_cache.checked.insert(
module_id,
CheckedModule {
aliases: solved_module.aliases,
solved_subs,
decls,
abilities_store,

View file

@ -136,10 +136,6 @@ pub struct TypeCheckedModule<'a> {
#[derive(Debug)]
pub struct CheckedModule {
/// all aliases and their definitions. this has to include non-exposed aliases
/// because exposed aliases can depend on non-exposed ones)
pub aliases: MutMap<Symbol, (bool, Alias)>,
pub solved_subs: Solved<Subs>,
pub decls: Declarations,
pub abilities_store: AbilitiesStore,