Skip to content

dylint_testing does not work when RUSTC_WRAPPER is set #1696

@smoelius

Description

@smoelius

Thanks for the headsup, @dcastro. I can reproduce. This appears to be the crucial bit:

called Result::unwrap() on an Err value: Found no rustc invocations for ui

@smoelius just so you're aware, I ran into a similar issue trying to run a test with ui_test_example/ui_test_examples while having RUSTC_WRAPPER=sccache set.

Tests using ui_test work fine though.

I can reproduce this on dylint's own tests, namely examples/restriction/try_io_result:

$ RUSTFLAGS='' cargo test
...
---- ui stdout ----

thread 'ui' panicked at /home/dc/dev/other/dylint/utils/testing/src/ui.rs:106:90:
called `Result::unwrap()` on an `Err` value: Found no `rustc` invocations for `ui`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
...

Setting RUSTC_WRAPPER='' works though.

Originally posted by @dcastro in #1691

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions