commure / datatest

Datatest -- data-driven test framework for Rust
Apache License 2.0
53 stars 15 forks source link

Compile errors "missing fields `compile_fail`" on new Rust version #34

Open mverleg opened 3 years ago

mverleg commented 3 years ago

I get multiple errors like this when compiling a project with datatest as dependency

error[E0063]: missing fields `compile_fail` and `no_run` in initializer of `TestDesc`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/datatest-0.6.3/src/runner.rs:174:23
    |
174 |                 desc: TestDesc {
    |                       ^^^^^^^^ missing `compile_fail` and `no_run`

error[E0609]: no field `filter` on type `&mut TestOpts`
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/datatest-0.6.3/src/runner.rs:258:34
    |
258 |     if opts.filter_exact && opts.filter.as_ref().map_or(false, |s| s == real_test_name) {
    |                                  ^^^^^^ help: a field with a similar name exists: `filters`

This is with

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.56.0-nightly (4e282795d 2021-07-31)

Also happens when compiling datatest directory (as opposed to it being a dependency).

Happens for 0.6.3 and for master branch (and for PR #30)

mverleg commented 3 years ago

As a small side-note, the build status badge in the README gives a 404, so I can't tell if it works in CI.

cormacrelf commented 3 years ago

compile_fail is from https://github.com/rust-lang/rust/pull/84863

I added a new branch you can swap in: https://github.com/cormacrelf/datatest/tree/compile_fail