mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
remove ATTR_ATTR usage
This commit is contained in:
parent
fa7dec2997
commit
62da85cc06
7 changed files with 37 additions and 265 deletions
|
@ -2103,17 +2103,6 @@ fn build_specialized_proc_from_var<'a>(
|
|||
ret_var,
|
||||
)
|
||||
}
|
||||
Content::Structure(FlatType::Apply(Symbol::ATTR_ATTR, args))
|
||||
if !pattern_symbols.is_empty() =>
|
||||
{
|
||||
build_specialized_proc_from_var(
|
||||
env,
|
||||
layout_cache,
|
||||
proc_name,
|
||||
pattern_symbols,
|
||||
args[1],
|
||||
)
|
||||
}
|
||||
Content::Alias(_, _, actual) => build_specialized_proc_from_var(
|
||||
env,
|
||||
layout_cache,
|
||||
|
@ -7142,12 +7131,6 @@ pub fn num_argument_to_int_or_float(
|
|||
| Content::Alias(Symbol::NUM_AT_UNSIGNED8, _, _) => {
|
||||
IntOrFloat::UnsignedIntType(IntPrecision::I8)
|
||||
}
|
||||
Content::Structure(FlatType::Apply(Symbol::ATTR_ATTR, attr_args)) => {
|
||||
debug_assert!(attr_args.len() == 2);
|
||||
|
||||
// Recurse on the second argument
|
||||
num_argument_to_int_or_float(subs, ptr_bytes, attr_args[1], false)
|
||||
}
|
||||
Content::Alias(Symbol::NUM_FLOATINGPOINT, args, _) => {
|
||||
debug_assert!(args.len() == 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue