Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d11a676

Browse files
committedDec 3, 2018
use assert
1 parent 0405743 commit d11a676

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/stacked_borrows.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ impl<'tcx> Stack {
322322
}
323323
return;
324324
}
325-
if self.frozen_since.is_some() {
326-
bug!("Trying to create non-frozen reference to frozen location");
327-
}
325+
assert!(self.frozen_since.is_none(), "Trying to create non-frozen reference to frozen location");
328326

329327
// Push new item to the stack.
330328
let itm = match bor {

0 commit comments

Comments
 (0)
Please sign in to comment.