Skip to content

Commit

Permalink
Change assert! to debug_assert!
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Feb 29, 2024
1 parent 403ea65 commit 287eaf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl<'tcx> GotocCtx<'tcx> {
fn intrinsic_basename(name: &str) -> &str {
let scope_sep_count = name.matches("::").count();
// We expect at most one `::` separator from trimmed intrinsic names
assert!(
debug_assert!(
scope_sep_count < 2,
"expected at most one `::` in intrinsic name, but found {scope_sep_count} in `{name}`"
);
Expand Down

0 comments on commit 287eaf8

Please sign in to comment.