about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStein Somers <git@steinsomers.be>2020-01-17 01:05:49 +0100
committerStein Somers <git@steinsomers.be>2020-01-17 01:05:49 +0100
commit4dbae1e8baf5c42b42aa2ab4d1104ec019b75b83 (patch)
treefd58c45353b5a8405f473ab10a207b5e1ec2a14a
parent48840618382eccb8a799320c8e5d08e3b52f4c42 (diff)
downloadrust-4dbae1e8baf5c42b42aa2ab4d1104ec019b75b83.tar.gz
rust-4dbae1e8baf5c42b42aa2ab4d1104ec019b75b83.zip
Allow added string.insert benchmarks to compile
-rw-r--r--src/liballoc/benches/string.rs2
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) {