Open prestontw opened 2 years ago
I am trying to get datatest to work on nightly, but just replacing it with DynBenchFn doesn't work. It complains about that that is not a trait. Since I am a Rust noob I don't know how to fix this issue. Guess I'll have to look at another crate for dynamic tests.
Running on
rustc 1.61.0-nightly (58f11791a 2022-03-17), x86_64-apple-darwin
, I'm seeing the following errors:This fix to this seems pretty straight-forward (rename the import and implement the differences between the versions of the trait), but I'm not sure how to make this pass for both stable and nightly rustc versions. Maybe I can use @cormacrelf 's trick in https://github.com/commure/datatest/pull/30/files#diff-d0d98998092552a1d3259338c2c71e118a5b8343dd4703c0c7f552ada7f9cb42R26-R27 for detecting which trait we should use?