Use debug_assert_eq! instead of debug_assert!

This commit is contained in:
Richard Feldman 2022-11-18 14:01:42 -05:00
parent e88c6ea17b
commit e2b6d93096
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -645,8 +645,8 @@ pub fn build(
roc_run(&arena, opt_level, triple, args, bytes, expect_metadata)
}
BuildAndRunIfNoErrors => {
debug_assert!(
problems.errors == 0,
debug_assert_eq!(
problems.errors, 0,
"if there are errors, they should have been returned as an error variant"
);
if problems.warnings > 0 {