Closed
Description
From a local compilation:
$ cargo new foo
$ cd foo
$ mkdir tests
$ touch tests/a.rs
$ cargo check --test a -v
Compiling foo v0.1.0 (file:///home/alex/code/foo)
Running `rustc --crate-name foo src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=6d607d3e3579f789 -C extra-filename=-6d607d3e3579f789 --out-dir /home/alex/code/foo/target/debug/deps -L dependency=/home/alex/code/foo/target/debug/deps`
Running `rustc --crate-name a tests/a.rs --emit=dep-info,link -C debuginfo=2 --test -C metadata=e8ff428dccc81b86 -C extra-filename=-e8ff428dccc81b86 --out-dir /home/alex/code/foo/target/debug/deps -L dependency=/home/alex/code/foo/target/debug/deps --extern foo=/home/alex/code/foo/target/debug/deps/libfoo-6d607d3e3579f789.rlib`
Finished dev [unoptimized + debuginfo] target(s) in 0.32 secs
Notably nothing was compiled with metadata as an output.
cc @nrc