mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Print "(immutable)" when dumping allocations.
This commit is contained in:
parent
c679c71def
commit
678b9ca328
@ -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…
Reference in New Issue
Block a user