Skip to content

Commit f18d2fc

Browse files
authored
Unrolled build for rust-lang#128922
Rollup merge of rust-lang#128922 - Nadrieril:r-a-use-upstream-pat-ana, r=Veykril rust-analyzer: use in-tree `pattern_analysis` crate r? ```@Veykril```
2 parents be0ea0c + bb84372 commit f18d2fc

File tree

1 file changed

+4
-2
lines changed
  • src/tools/rust-analyzer/crates/hir-ty/src

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ 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.
18+
#[cfg(feature = "in-rust-tree")]
19+
extern crate rustc_pattern_analysis;
20+
21+
#[cfg(not(feature = "in-rust-tree"))]
2022
extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
2123

2224
mod builder;

0 commit comments

Comments
 (0)