about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-15 14:11:27 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-15 14:11:27 -0800
commitbaee2049eb551e06765d4f43b9ff61afd783aaf5 (patch)
tree7f7af333aef8080d133769641c530a4485d84771 /src/test/codegen/stack-alloc-string-slice.rs
parent9ade482b3bdc7a967ca98f1f1138b596ef45191e (diff)
parent9f5fc563d3d592d5e44ab71759ffa26d326b3daa (diff)
downloadrust-baee2049eb551e06765d4f43b9ff61afd783aaf5.tar.gz
rust-baee2049eb551e06765d4f43b9ff61afd783aaf5.zip
rollup merge of #20463: amaranth/black_box_output
By returning the passed value black_box can be used on data being
passed to a function being benchmarked. This ensures the compiler
does not optimize the function for the input which could result in
the entire function being optimized away.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions