use assert
This commit is contained in:
parent
04057432c1
commit
d11a6766ad
1 changed files with 1 additions and 3 deletions
|
|
@ -322,9 +322,7 @@ impl<'tcx> Stack {
|
|||
}
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue