diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-15 14:11:27 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-15 14:11:27 -0800 |
| commit | baee2049eb551e06765d4f43b9ff61afd783aaf5 (patch) | |
| tree | 7f7af333aef8080d133769641c530a4485d84771 /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | 9ade482b3bdc7a967ca98f1f1138b596ef45191e (diff) | |
| parent | 9f5fc563d3d592d5e44ab71759ffa26d326b3daa (diff) | |
| download | rust-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
