Improve a debug assert message (triggered by unnecessary import of Box)

This commit is contained in:
Brian Carroll 2022-07-17 15:26:08 +01:00
parent c50cbd265a
commit 8cf7752514
No known key found for this signature in database
GPG Key ID: 9CF4E3BF9C4722C7

View File

@ -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());