X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Ftest%2Fsrc%2Ftypes.rs;h=37bb38fb0df4efb64d557d31d515e83cd2a7183d;hb=67bcbde3c50bdf50a48eb0e6a664cc8d02276d9d;hp=3512a57e8e4ae59254e5c5b6fed3c7303bf925ed;hpb=7636fbce7eb25b3178842499588bb121b781b4f5;p=rust.git diff --git a/library/test/src/types.rs b/library/test/src/types.rs index 3512a57e8e4..37bb38fb0df 100644 --- a/library/test/src/types.rs +++ b/library/test/src/types.rs @@ -74,11 +74,6 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { } } -/// Represents a benchmark function. -pub trait TDynBenchFn: Send { - fn run(&self, harness: &mut Bencher); -} - // A function that runs a test. If the function returns successfully, // the test succeeds; if the function panics then the test fails. We // may need to come up with a more clever definition of test in order @@ -87,7 +82,7 @@ pub enum TestFn { StaticTestFn(fn()), StaticBenchFn(fn(&mut Bencher)), DynTestFn(Box), - DynBenchFn(Box), + DynBenchFn(Box), } impl TestFn {