diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-08-10 14:49:26 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-08-14 20:52:19 +0200 |
| commit | bb84372e436dfeba61ad1b4deef408a3cf9a12c5 (patch) | |
| tree | 0db608ebeb05ca9625aac8abe49c2c45015447fa /src | |
| parent | 0f442e265c165c0a78633bef98de18517815150c (diff) | |
| download | rust-bb84372e436dfeba61ad1b4deef408a3cf9a12c5.tar.gz rust-bb84372e436dfeba61ad1b4deef408a3cf9a12c5.zip | |
rust-analyzer: use in-tree pattern_analysis crate
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rust-analyzer/crates/hir-ty/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-ty/src/lib.rs b/src/tools/rust-analyzer/crates/hir-ty/src/lib.rs index 4c9e0a1e118..21c84511dc3 100644 --- a/src/tools/rust-analyzer/crates/hir-ty/src/lib.rs +++ b/src/tools/rust-analyzer/crates/hir-ty/src/lib.rs @@ -15,8 +15,10 @@ extern crate rustc_abi; #[cfg(not(feature = "in-rust-tree"))] extern crate ra_ap_rustc_abi as rustc_abi; -// Use the crates.io version unconditionally until the API settles enough that we can switch to -// using the in-tree one. +#[cfg(feature = "in-rust-tree")] +extern crate rustc_pattern_analysis; + +#[cfg(not(feature = "in-rust-tree"))] extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis; mod builder; |
