From b9c07aef27ce10c6860a85a7ee229589396bb6f4 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Wed, 11 May 2022 10:51:27 -0400 Subject: [PATCH] Use internal_error over unreachable --- compiler/mono/src/copy.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/mono/src/copy.rs b/compiler/mono/src/copy.rs index 420736842d..afcb34c7d0 100644 --- a/compiler/mono/src/copy.rs +++ b/compiler/mono/src/copy.rs @@ -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), } } }