Skip to content

Commit eecad10

Browse files
committed
rust-analyzer: use in-tree pattern_analysis crate
1 parent 19469cb commit eecad10

File tree

1 file changed

+5
-3
lines changed
  • src/tools/rust-analyzer/crates/hir-ty/src

1 file changed

+5
-3
lines changed

src/tools/rust-analyzer/crates/hir-ty/src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ extern crate rustc_abi;
1515
#[cfg(not(feature = "in-rust-tree"))]
1616
extern crate ra_ap_rustc_abi as rustc_abi;
1717

18-
// Use the crates.io version unconditionally until the API settles enough that we can switch to
19-
// using the in-tree one.
20-
extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
18+
#[cfg(feature = "in-rust-tree")]
19+
extern crate rustc_pattern_analysis;
20+
21+
#[cfg(not(feature = "in-rust-tree"))]
22+
extern crate ra_ap_rustc_pattern_analysis as rrustc_pattern_analysisustc_pattern_analysis;
2123

2224
mod builder;
2325
mod chalk_db;

0 commit comments

Comments
 (0)