mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Give up on exhaustively enumerating aliases
Keep getting errors in the build ruby example on Json, and it doesn't tell me the name of the symbol, just the IdentId, which makes this really hard to track down. This approach works fine, it'll just be harder to debug the next time we run into a special case like ElemWalker.
This commit is contained in:
parent
83ead6b2b2
commit
995c985fbe
1 changed files with 2 additions and 6 deletions
|
@ -580,14 +580,10 @@ impl<'a> RawFunctionLayout<'a> {
|
|||
cacheable(Ok(Self::ZeroArgumentThunk(Layout::usize(env.target_info))))
|
||||
}
|
||||
|
||||
Alias(Symbol::NUM_NUM | Symbol::NUM_INT | Symbol::NUM_FRAC | Symbol::NUM_DEC | Symbol::BOOL_BOOL | Symbol::RESULT_RESULT | Symbol::JSON_FIELD_NAME_MAPPING | Symbol::JSON_JSON | Symbol::JSON_NUMBER_STATE | Symbol::JSON_STRING_STATE | Symbol::JSON_ARRAY_OPENING_STATE | Symbol::JSON_ARRAY_CLOSING_STATE | Symbol::JSON_OBJECT_STATE, _, _, _) => {
|
||||
Layout::new_help(env, var, content).then(Self::ZeroArgumentThunk)
|
||||
}
|
||||
|
||||
Alias(Symbol::INSPECT_ELEM_WALKER | Symbol::INSPECT_KEY_VAL_WALKER, _, var, _) => Self::from_var(env, var),
|
||||
|
||||
Alias(symbol, _, _, _) if symbol.is_builtin() => {
|
||||
unreachable!("The named builtin type {:?} does not have an explicit entry for whether it's a zero-arg thunk or type alias.", symbol);
|
||||
Alias(symbol, _, var, _) if symbol.is_builtin() => {
|
||||
Layout::new_help(env, var, content).then(Self::ZeroArgumentThunk)
|
||||
}
|
||||
|
||||
Alias(_, _, var, _) => Self::from_var(env, var),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue