|
3 | 3 |
|
4 | 4 | #![cfg_attr(feature = "in-rust-tree", feature(rustc_private))]
|
5 | 5 |
|
6 |
| -#[cfg(feature = "in-rust-tree")] |
7 |
| -extern crate rustc_index; |
| 6 | +// FIXME: We used to import `rustc_*` deps from `rustc_private` with `feature = "in-rust-tree" but |
| 7 | +// temporarily switched to crates.io versions due to hardships that working on them from rustc |
| 8 | +// demands corresponding changes on rust-analyzer at the same time. |
| 9 | +// For details, see the zulip discussion below: |
| 10 | +// https://rust-lang.zulipchat.com/#narrow/channel/185405-t-compiler.2Frust-analyzer/topic/relying.20on.20in-tree.20.60rustc_type_ir.60.2F.60rustc_next_trait_solver.60/with/541055689 |
8 | 11 |
|
9 |
| -#[cfg(not(feature = "in-rust-tree"))] |
10 | 12 | extern crate ra_ap_rustc_index as rustc_index;
|
11 | 13 |
|
12 |
| -#[cfg(feature = "in-rust-tree")] |
13 |
| -extern crate rustc_abi; |
14 |
| - |
15 |
| -#[cfg(not(feature = "in-rust-tree"))] |
16 | 14 | extern crate ra_ap_rustc_abi as rustc_abi;
|
17 | 15 |
|
18 |
| -#[cfg(feature = "in-rust-tree")] |
19 |
| -extern crate rustc_pattern_analysis; |
20 |
| - |
21 |
| -#[cfg(not(feature = "in-rust-tree"))] |
22 | 16 | extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
|
23 | 17 |
|
24 |
| -#[cfg(feature = "in-rust-tree")] |
25 |
| -extern crate rustc_ast_ir; |
26 |
| - |
27 |
| -#[cfg(not(feature = "in-rust-tree"))] |
28 | 18 | extern crate ra_ap_rustc_ast_ir as rustc_ast_ir;
|
29 | 19 |
|
30 |
| -#[cfg(feature = "in-rust-tree")] |
31 |
| -extern crate rustc_type_ir; |
32 |
| - |
33 |
| -#[cfg(not(feature = "in-rust-tree"))] |
34 | 20 | extern crate ra_ap_rustc_type_ir as rustc_type_ir;
|
35 | 21 |
|
36 |
| -#[cfg(feature = "in-rust-tree")] |
37 |
| -extern crate rustc_next_trait_solver; |
38 |
| - |
39 |
| -#[cfg(not(feature = "in-rust-tree"))] |
40 | 22 | extern crate ra_ap_rustc_next_trait_solver as rustc_next_trait_solver;
|
41 | 23 |
|
42 |
| -#[cfg(feature = "in-rust-tree")] |
43 |
| -extern crate rustc_data_structures as ena; |
44 |
| - |
45 | 24 | mod builder;
|
46 | 25 | mod chalk_db;
|
47 | 26 | mod chalk_ext;
|
|
0 commit comments