mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
add a sanity assertion
This commit is contained in:
@@ -318,6 +318,7 @@ fn reborrow(
|
||||
new_bor: Borrow,
|
||||
new_kind: RefKind,
|
||||
) -> EvalResult<'tcx> {
|
||||
assert_eq!(new_bor.is_unique(), new_kind == RefKind::Unique);
|
||||
trace!("reborrow for tag {:?} to {:?} as {:?}: {:?}, size {}",
|
||||
ptr.tag, new_bor, new_kind, ptr, size.bytes());
|
||||
let mut stacks = self.stacks.borrow_mut();
|
||||
|
||||
Reference in New Issue
Block a user