mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
use assert
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user