diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-01-17 18:53:44 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-17 18:53:44 +0530 |
| commit | 87a2896b0aa32343af271d430c1e9ce548e1ff1f (patch) | |
| tree | ac06ded53b801d000253d51a4b4572309185d362 /src/liballoc | |
| parent | ed0e11a3cbaa4c3d3a6e90c2dea197952398ab88 (diff) | |
| parent | 4dbae1e8baf5c42b42aa2ab4d1104ec019b75b83 (diff) | |
| download | rust-87a2896b0aa32343af271d430c1e9ce548e1ff1f.tar.gz rust-87a2896b0aa32343af271d430c1e9ce548e1ff1f.zip | |
Rollup merge of #68300 - ssomers:67281_take_2, r=Dylan-DPC
Allow added string.insert benchmarks to compile Allow the code added by #67281 to compile. (symptons listed [in internals forum](https://internals.rust-lang.org/t/x-py-how-to-benchmark-liballoc/11635)) r? @llogiq
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/benches/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/benches/string.rs b/src/liballoc/benches/string.rs index 599c8b16828..5c95160ba2d 100644 --- a/src/liballoc/benches/string.rs +++ b/src/liballoc/benches/string.rs @@ -1,5 +1,5 @@ use std::iter::repeat; -use test::Bencher; +use test::{black_box, Bencher}; #[bench] fn bench_with_capacity(b: &mut Bencher) { |
