mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Remove resolved stopgap
This commit is contained in:
parent
8f593480e5
commit
8228df55c7
1 changed files with 0 additions and 16 deletions
|
@ -6810,22 +6810,6 @@ fn reuse_symbol_or_specialize<'a>(
|
||||||
symbol: Symbol,
|
symbol: Symbol,
|
||||||
var: Variable,
|
var: Variable,
|
||||||
) -> Symbol {
|
) -> Symbol {
|
||||||
// TODO: for some reason, we can't attempt to specialize the built-in argument symbols.
|
|
||||||
// Figure out why.
|
|
||||||
let arguments = [
|
|
||||||
Symbol::ARG_1,
|
|
||||||
Symbol::ARG_2,
|
|
||||||
Symbol::ARG_3,
|
|
||||||
Symbol::ARG_4,
|
|
||||||
Symbol::ARG_5,
|
|
||||||
Symbol::ARG_6,
|
|
||||||
Symbol::ARG_7,
|
|
||||||
];
|
|
||||||
|
|
||||||
if arguments.contains(&symbol) {
|
|
||||||
return symbol;
|
|
||||||
}
|
|
||||||
|
|
||||||
let wanted_layout = match layout_cache.from_var(env.arena, var, env.subs) {
|
let wanted_layout = match layout_cache.from_var(env.arena, var, env.subs) {
|
||||||
Ok(layout) => layout,
|
Ok(layout) => layout,
|
||||||
// This can happen when the def symbol has a type error. In such cases just use the
|
// This can happen when the def symbol has a type error. In such cases just use the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue