mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
remove alias
This commit is contained in:
parent
3561d66f62
commit
6d3fd89f8e
4 changed files with 3 additions and 17 deletions
|
@ -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())
|
||||
}
|
||||
|
|
|
@ -2745,7 +2745,6 @@ fn update<'a>(
|
|||
state.module_cache.checked.insert(
|
||||
module_id,
|
||||
CheckedModule {
|
||||
aliases: solved_module.aliases,
|
||||
solved_subs,
|
||||
decls,
|
||||
abilities_store,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue