fix failing debug_assert

This commit is contained in:
Folkert 2022-01-26 20:22:18 +01:00
parent ddf2a09cbf
commit b3d605cade
2 changed files with 6 additions and 2 deletions

View file

@ -124,7 +124,11 @@ where
// This is a type alias
// the symbol should already be added to the scope when this module is canonicalized
debug_assert!(scope.contains_alias(symbol), "{:?}", symbol);
debug_assert!(
scope.contains_alias(symbol),
"apparently, {:?} is not actually a type alias",
symbol
);
// but now we know this symbol by a different identifier, so we still need to add it to
// the scope