diff options
| author | Nicholas Thompson <NCGThompson@gmail.com> | 2023-12-25 21:10:04 -0500 |
|---|---|---|
| committer | Nicholas Thompson <NCGThompson@gmail.com> | 2024-01-11 11:30:12 -0500 |
| commit | 7c28a50a3abf85a787c182ebc8c6deca0bb9135b (patch) | |
| tree | 27fb0833839669d2e21ffb7b50284006320f10e9 | |
| parent | 68acb393c5d2cff049b41981e35217a7e630f63a (diff) | |
| download | rust-7c28a50a3abf85a787c182ebc8c6deca0bb9135b.tar.gz rust-7c28a50a3abf85a787c182ebc8c6deca0bb9135b.zip | |
removed nonfunctioning benchmark
It could also have been fixed by removing a semicolon instead.
| -rw-r--r-- | library/std/src/num.rs | 3 | ||||
| -rw-r--r-- | library/std/src/num/benches.rs | 9 |
2 files changed, 0 insertions, 12 deletions
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::<Vec<u32>>(); - b.iter(|| { - v.iter().fold(0u32, |old, new| old.pow(*new as u32)); - }); -} |
