mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
chore: replace panic! with internal_error
This commit is contained in:
parent
f6221fb9e9
commit
8bf888a5e6
8 changed files with 27 additions and 17 deletions
|
@ -1,4 +1,5 @@
|
|||
use roc_collections::{VecMap, VecSet};
|
||||
use roc_error_macros::internal_error;
|
||||
use roc_module::ident::Ident;
|
||||
use roc_module::symbol::{IdentId, IdentIds, ModuleId, Symbol};
|
||||
use roc_problem::can::RuntimeError;
|
||||
|
@ -470,9 +471,13 @@ pub fn create_alias(
|
|||
}
|
||||
|
||||
if !hidden.is_empty() {
|
||||
panic!(
|
||||
internal_error!(
|
||||
"Found unbound type variables {:?} \n in type alias {:?} {:?} {:?} : {:?}",
|
||||
hidden, name, &vars, &infer_ext_in_output_variables, &typ
|
||||
hidden,
|
||||
name,
|
||||
&vars,
|
||||
&infer_ext_in_output_variables,
|
||||
&typ
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue