auxiliary files in compile-test aren't compatible with extern_prelude
feature
#52428
Labels
A-compiletest
Area: The compiletest test runner
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
When we use the "auxiliary crate" feature in compile-test, it adds a
-L <aux-path>
flag that points rustc at the directory where to find those crates. This means that when rustc sees anextern crate
it then searches those directories. It's good to have the ability to test that behavior, but it's not the way that cargo drives rustc -- and as a result it's not compatible with the new extern-prelude feature set, requiring awkward run-make tests like extern-prelude.It would probably be better for compiletest, by default, to add a
--extern foo=<path-to-foo>
flag for each auxiliary crate. We could maybe keep a way to use the "auxdir" option.cc @petrochenkov @zackmdavis @nrc @qmx
The text was updated successfully, but these errors were encountered: