File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
examples/bump-alloc-tests/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,8 @@ fn stack_and_static(ctx: &ReceiveContext, _host: &Host<State>) -> ReceiveResult<
114114 let original_text_len = text. len ( ) ;
115115 // Allocate a long lived box on the heap.
116116 let long_lived: Box < Vec < u32 > > = black_box ( Box :: new ( ( 0 ..n) . collect ( ) ) ) ;
117- // Run the appender function. Wrapped in a [`black_box`] to ensure that the
118- // compiler won't try to optimize the internals away.
119- black_box ( appender ( & mut text, n, & on_even, ON_ODD ) ) ;
117+ // Run the appender function.
118+ appender ( & mut text, n, & on_even, ON_ODD ) ;
120119 // Use some of the local variables defined before the recursive call.
121120 // Abort if `n` should have been altered.
122121 if original_n != n {
You can’t perform that action at this time.
0 commit comments