Skip to content

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

@mverleg

Description

@mverleg

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions