From 7c28a50a3abf85a787c182ebc8c6deca0bb9135b Mon Sep 17 00:00:00 2001 From: Nicholas Thompson Date: Mon, 25 Dec 2023 21:10:04 -0500 Subject: [PATCH] removed nonfunctioning benchmark It could also have been fixed by removing a semicolon instead. --- library/std/src/num.rs | 3 --- library/std/src/num/benches.rs | 9 --------- 2 files changed, 12 deletions(-) delete mode 100644 library/std/src/num/benches.rs diff --git a/library/std/src/num.rs b/library/std/src/num.rs index 3cd5fa458e0..55f6ddcf77f 100644 --- a/library/std/src/num.rs +++ b/library/std/src/num.rs @@ -9,9 +9,6 @@ #[cfg(test)] mod tests; -#[cfg(test)] -mod benches; - #[stable(feature = "saturating_int_impl", since = "1.74.0")] pub use core::num::Saturating; #[stable(feature = "rust1", since = "1.0.0")] diff --git a/library/std/src/num/benches.rs b/library/std/src/num/benches.rs deleted file mode 100644 index 233ea0506c0..00000000000 --- a/library/std/src/num/benches.rs +++ /dev/null @@ -1,9 +0,0 @@ -use test::Bencher; - -#[bench] -fn bench_pow_function(b: &mut Bencher) { - let v = (0..1024).collect::>(); - b.iter(|| { - v.iter().fold(0u32, |old, new| old.pow(*new as u32)); - }); -}