mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Use internal_error over unreachable
This commit is contained in:
parent
49bf36ec09
commit
b9c07aef27
1 changed files with 2 additions and 1 deletions
|
@ -629,6 +629,7 @@ fn deep_copy_type_vars<'a>(
|
|||
mod test {
|
||||
use super::deep_copy_type_vars;
|
||||
use bumpalo::Bump;
|
||||
use roc_error_macros::internal_error;
|
||||
use roc_module::symbol::Symbol;
|
||||
use roc_types::subs::{
|
||||
Content, Content::*, Descriptor, Mark, OptVariable, Rank, Subs, SubsIndex, Variable,
|
||||
|
@ -732,7 +733,7 @@ mod test {
|
|||
RigidAbleVar(name, Symbol::UNDERSCORE) => {
|
||||
assert_eq!(subs[*name].as_str(), "a");
|
||||
}
|
||||
it => unreachable!("{:?}", it),
|
||||
it => internal_error!("{:?}", it),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue