Skip to content

Commit 66dbf08

Browse files
committed
add todo related with storing of format_args! outside format!
1 parent 3d962a4 commit 66dbf08

File tree

2 files changed

+2
-0
lines changed
  • src/allocator

2 files changed

+2
-0
lines changed

src/allocator/dedicated_block_allocator/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ impl SubAllocator for DedicatedBlockAllocator {
103103
let backtrace_info;
104104
#[cfg(feature = "std")]
105105
{
106+
// TODO: Allocation could be avoided here if https://github.com/rust-lang/rust/pull/139135 is merged and stabilized.
106107
backtrace_info = format!(
107108
",
108109
backtrace: {}",

src/allocator/free_list_allocator/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ impl SubAllocator for FreeListAllocator {
380380
let backtrace_info;
381381
#[cfg(feature = "std")]
382382
{
383+
// TODO: Allocation could be avoided here if https://github.com/rust-lang/rust/pull/139135 is merged and stabilized.
383384
backtrace_info = format!(
384385
",
385386
backtrace: {}",

0 commit comments

Comments
 (0)