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
[DO NOT MERGE] `./x test rust-analyzer`
I somehow made `./x test rust-analyzer` work on my machine[^machine], **but at what cost?**
Not intended for merge but only as a reference. If we do want to land this, I'll need to tidy this up.
Notes:
- Unrelated tracing bits are extracted to #137080.
- I abused a bunch of cargo features `in-rust-tree`. It probably doesn't need to be, and simply `--cfg` might work. I was trying to get the main rust-analyzer tests to build *at all*. Anything building is already a miracle.
- I had to slap a bunch of the following to all the r-a crates to get the tests to build at all. I don't 100% understand why, but otherwise I get a whole ton of ``expected `rustc_lexer` to be available in rlib format`` build failures.
```rs
#![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
#[cfg(all(feature = "in-rust-tree", test))]
extern crate rustc_driver as _;
```
- Skipped one config test that was fixed on r-a master but not synced here in r-l/r yet.
[^machine]: `x86_64-unknown-linux-gnu`, haven't bothered trying this on msvc yet.
try-job: aarch64-gnu
try-job: x86_64-apple-1
try-job: aarch64-apple
try-job: i686-mingw-1
try-job: x86_64-mingw-1
try-job: i686-msvc-1
try-job: x86_64-msvc-1
0 commit comments