Print "(immutable)" when dumping allocations.
This commit is contained in:
parent
c679c71def
commit
678b9ca328
1 changed files with 3 additions and 1 deletions
|
@ -382,7 +382,9 @@ impl<'a, 'tcx> Memory<'a, 'tcx> {
|
|||
print!("__ ");
|
||||
}
|
||||
}
|
||||
println!("({} bytes)", alloc.bytes.len());
|
||||
|
||||
let immutable = if alloc.immutable { " (immutable)" } else { "" };
|
||||
println!("({} bytes){}", alloc.bytes.len(), immutable);
|
||||
|
||||
if !relocations.is_empty() {
|
||||
print!("{:1$}", "", prefix.len()); // Print spaces.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue