rust/src/test/ui/crate-loading
Joshua Nelson 68b959827b Reuse CrateNum for proc-macro crates even when cross-compiling
Proc-macros are always compiled for the host, so this should be the same
in every way as recompiling the crate.

I am not sure why the previous code special-cased the target, since the
compiler properly gives an error when trying to load a crate for a
different host:

```
error[E0461]: couldn't find crate `dependency` with expected target triple x86_64-unknown-linux-gnu
  --> /home/joshua/rustc4/src/test/ui/cfg-dependent.rs:8:2
   |
LL |     dependency::is_64();
   |     ^^^^^^^^^^
   |
   = note: the following crate versions were found:
           crate `dependency`, target triple i686-unknown-linux-gnu: /home/joshua/rustc4/build/x86_64-unknown-linux-gnu/test/ui/cfg-dependent/auxiliary/libdependency.so
```

I think another possible fix is to remove the check altogether. But I'm
not sure, and this fix works, so I'm not making the larger change here.
2021-07-14 20:36:35 -04:00
..
auxiliary Reuse CrateNum for proc-macro crates even when cross-compiling 2021-07-14 20:36:35 -04:00
crateresolve1.rs Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
cross-compiled-proc-macro.rs Reuse CrateNum for proc-macro crates even when cross-compiling 2021-07-14 20:36:35 -04:00
missing-std.rs Re-Annotate the tests with needs-llvm-components 2021-06-24 23:13:08 +03:00
missing-std.stderr compiletest: ignore tests on a per-revision basis 2021-06-24 23:13:08 +03:00