From 8cf7752514b129828fe9d3e4d604881977e447f4 Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Sun, 17 Jul 2022 15:26:08 +0100 Subject: [PATCH] Improve a debug assert message (triggered by unnecessary import of Box) --- crates/compiler/load_internal/src/work.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/compiler/load_internal/src/work.rs b/crates/compiler/load_internal/src/work.rs index b0e5b2c8ce..6c2226f6cb 100644 --- a/crates/compiler/load_internal/src/work.rs +++ b/crates/compiler/load_internal/src/work.rs @@ -64,7 +64,8 @@ impl MakeSpecializationsDependents { let entry = self.entry(module_id); debug_assert!( entry.succ.is_empty(), - "already added successors for this module" + "already added successors for module '{:?}'", + module_id ); entry.succ.extend(succ.into_iter());