more use of format! variable capture
Co-authored-by: Joe ST <joe@fbstj.net>
This commit is contained in:
parent
d31cbb5150
commit
0832d1d022
3 changed files with 3 additions and 5 deletions
|
@ -306,9 +306,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
|||
}
|
||||
if alloc_kind != kind {
|
||||
throw_ub_format!(
|
||||
"deallocating {alloc_id:?}, which is {} memory, using {} deallocation operation",
|
||||
alloc_kind,
|
||||
kind
|
||||
"deallocating {alloc_id:?}, which is {alloc_kind} memory, using {kind} deallocation operation"
|
||||
);
|
||||
}
|
||||
if let Some((size, align)) = old_size_and_align {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue