diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-04-26 15:35:24 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-04-26 19:22:35 +1000 |
| commit | 2e4f66a86f7baa5644d18bb2adc07a8cd1c7409d (patch) | |
| tree | 886b843b43ba8b643554b1dcd546da3d72a66df3 /src/liballoc | |
| parent | cc794209681d6b11a63282bcd1513caa50127816 (diff) | |
| download | rust-2e4f66a86f7baa5644d18bb2adc07a8cd1c7409d.tar.gz rust-2e4f66a86f7baa5644d18bb2adc07a8cd1c7409d.zip | |
Make dump_{alloc,allocs,local}() no-ops when tracing is disabled.
Because they traverse data structures and build up strings, which is wasted effort if those strings aren't printed. The patch also removes some now-unnecessary log_enabled! tests at call sites.
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions
