mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Remove deprecated roc_collections::soa things
This commit is contained in:
parent
d796b3ec74
commit
8997c80573
14 changed files with 42 additions and 39 deletions
|
@ -22,7 +22,6 @@ use roc_can::expr::{
|
|||
use roc_can::pattern::Pattern;
|
||||
use roc_can::traverse::symbols_introduced_from_pattern;
|
||||
use roc_collections::all::{HumanIndex, MutMap, SendMap};
|
||||
use roc_collections::soa::{Index, Slice};
|
||||
use roc_collections::VecMap;
|
||||
use roc_module::ident::Lowercase;
|
||||
use roc_module::symbol::{ModuleId, Symbol};
|
||||
|
@ -33,6 +32,7 @@ use roc_types::types::{
|
|||
AliasKind, AnnotationSource, Category, IndexOrField, OptAbleType, PReason, Reason, RecordField,
|
||||
TypeExtension, TypeTag, Types,
|
||||
};
|
||||
use soa::{Index, Slice};
|
||||
|
||||
/// This is for constraining Defs
|
||||
#[derive(Default, Debug)]
|
||||
|
|
|
@ -5,7 +5,6 @@ use roc_can::expected::{Expected, PExpected};
|
|||
use roc_can::pattern::Pattern::{self, *};
|
||||
use roc_can::pattern::{DestructType, ListPatterns, RecordDestruct, TupleDestruct};
|
||||
use roc_collections::all::{HumanIndex, SendMap};
|
||||
use roc_collections::soa::Index;
|
||||
use roc_collections::VecMap;
|
||||
use roc_module::ident::Lowercase;
|
||||
use roc_module::symbol::Symbol;
|
||||
|
@ -15,6 +14,7 @@ use roc_types::types::{
|
|||
AliasKind, AliasShared, Category, OptAbleType, PReason, PatternCategory, Reason, RecordField,
|
||||
Type, TypeExtension, TypeTag, Types,
|
||||
};
|
||||
use soa::Index;
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct PatternState {
|
||||
|
@ -171,8 +171,10 @@ fn headers_from_annotation_help(
|
|||
return false;
|
||||
}
|
||||
|
||||
arguments.iter().zip(arg_types_slice).all(
|
||||
|(arg_pattern, arg_type)| {
|
||||
arguments
|
||||
.iter()
|
||||
.zip(arg_types_slice)
|
||||
.all(|(arg_pattern, arg_type)| {
|
||||
headers_from_annotation_help(
|
||||
types,
|
||||
constraints,
|
||||
|
@ -180,8 +182,7 @@ fn headers_from_annotation_help(
|
|||
&Loc::at(annotation.region, arg_type),
|
||||
headers,
|
||||
)
|
||||
},
|
||||
)
|
||||
})
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue