interpret: get_alloc_info: also return mutability
This commit is contained in:
parent
62bb2ac03e
commit
30a2ae6f05
9 changed files with 34 additions and 23 deletions
|
@ -472,7 +472,7 @@ fn report_validation_error<'tcx>(
|
|||
backtrace.print_backtrace();
|
||||
|
||||
let bytes = ecx.print_alloc_bytes_for_diagnostics(alloc_id);
|
||||
let (size, align, _) = ecx.get_alloc_info(alloc_id);
|
||||
let (size, align, ..) = ecx.get_alloc_info(alloc_id);
|
||||
let raw_bytes = errors::RawBytesNote { size: size.bytes(), align: align.bytes(), bytes };
|
||||
|
||||
crate::const_eval::report(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue