You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I run the test using TESTNAME=ui/crashes/ice-3741 cargo uitest, I get the following error:
thread '[ui] ui/crashes/ice-3741.rs' panicked at 'failed to exec `"/home/phansch/code/rust-clippy/target/debug/test_build_base/crashes/ice-3741.stage-id"`: Os {
code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
<snip unwind stuff>
7: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
8: core::result::unwrap_failed
at /rustc/dec0a98c4b392b5fd153ba8b944c496218717813/src/libcore/macros.rs:18
9: core::result::Result<T,E>::expect
at /rustc/dec0a98c4b392b5fd153ba8b944c496218717813/src/libcore/result.rs:825
10: compiletest_rs::runtest::TestCx::compose_and_run
at /home/phansch/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.19/src/runtest.rs:1359
11: compiletest_rs::runtest::TestCx::exec_compiled_test
at /home/phansch/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.19/src/runtest.rs:1228
12: compiletest_rs::runtest::TestCx::run_ui_test
at /home/phansch/.cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.19/src/runtest.rs:2312
The test passes without run-pass and also works when no extern crate is used, so maybe the auxiliary dependency is not passed through to the rustc command triggered by compiletest?
Oh, I think this may be because the test doesn't even compile, because it's not meant to compile currently. If it's doesn't compile, using run-pass rightfully says that the compiled file could not be found.
I'm trying to create a failing test for #3741 where I have to depend on an external proc-macro crate. The test itself looks like this:
In
tests/ui/crashes/auxiliary/proc_macro_crash.rs
I have:However, when I run the test using
TESTNAME=ui/crashes/ice-3741 cargo uitest
, I get the following error:The test passes without
run-pass
and also works when noextern crate
is used, so maybe the auxiliary dependency is not passed through to the rustc command triggered by compiletest?cc @oli-obk because you mentioned once on Discord that you think this can probably be fixed in Clippy?
The text was updated successfully, but these errors were encountered: