This repository was archived by the owner on May 28, 2025. It is now read-only.
forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit b0b374d
Auto merge of rust-lang#136779 - jieyouxu:rahhh, r=<try>
[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:
- 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-1File tree
39 files changed
+690
-155
lines changed- src
- bootstrap/src/core
- build_steps
- builder
- tools/rust-analyzer/crates
- base-db
- src
- cfg
- src
- hir-def
- src
- hir-expand/src
- hir-ty/src
- hir/src
- ide-assists/src
- ide-completion
- src
- ide-db
- src
- ide-diagnostics
- src
- ide-ssr
- src
- ide/src
- load-cargo/src
- mbe/src
- parser/src
- proc-macro-api
- src
- project-model
- src
- rust-analyzer
- src
- tests/slow-tests
- span
- src
- syntax-bridge/src
- syntax/src
- test-fixture
- src
- tt/src
39 files changed
+690
-155
lines changedLines changed: 188 additions & 121 deletions
Large diffs are not rendered by default.
Lines changed: 360 additions & 20 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | - | ||
24 | + | ||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
971 | 971 |
| |
972 | 972 |
| |
973 | 973 |
| |
974 | + | ||
974 | 975 |
| |
975 | 976 |
| |
976 | 977 |
| |
| |||
1215 | 1216 |
| |
1216 | 1217 |
| |
1217 | 1218 |
| |
1218 | - | ||
1219 | + | ||
1219 | 1220 |
| |
1220 | 1221 |
| |
1221 | 1222 |
| |
| |||
1331 | 1332 |
| |
1332 | 1333 |
| |
1333 | 1334 |
| |
1335 | + | ||
1336 | + | ||
1334 | 1337 |
| |
1335 | 1338 |
| |
1336 | 1339 |
| |
|
Lines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
355 | - | ||
356 | - | ||
357 | - | ||
355 | + | ||
356 | + | ||
357 | + | ||
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
| |||
632 | 632 |
| |
633 | 633 |
| |
634 | 634 |
| |
635 | - | ||
636 | - | ||
637 | - | ||
638 | - | ||
635 | + | ||
636 | + | ||
637 | + | ||
638 | + | ||
639 | 639 |
| |
640 | 640 |
| |
641 | 641 |
| |
| |||
713 | 713 |
| |
714 | 714 |
| |
715 | 715 |
| |
716 | - | ||
717 | - | ||
718 | - | ||
716 | + | ||
717 | + | ||
718 | + | ||
719 | 719 |
| |
720 | 720 |
| |
721 | 721 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 | + | ||
34 | + | ||
35 | + | ||
33 | 36 |
| |
34 | 37 |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
2 | 7 |
| |
3 | 8 |
| |
4 | 9 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
36 | 40 |
| |
37 | 41 |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
3 | 7 |
| |
4 | 8 |
| |
5 | 9 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 | + | ||
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | + | ||
12 | + | ||
11 | 13 |
| |
12 | 14 |
| |
13 | 15 |
| |
|
0 commit comments