use assert

This commit is contained in:
Ralf Jung
2018-12-03 10:26:39 +01:00
parent 04057432c1
commit d11a6766ad
+1 -3
View File
@@ -322,9 +322,7 @@ fn create(&mut self, bor: Borrow, kind: RefKind) {
}
return;
}
if self.frozen_since.is_some() {
bug!("Trying to create non-frozen reference to frozen location");
}
assert!(self.frozen_since.is_none(), "Trying to create non-frozen reference to frozen location");
// Push new item to the stack.
let itm = match bor {