Skip to content

Commit

Permalink
rust-analyzer: use in-tree pattern_analysis crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Aug 10, 2024
1 parent 19469cb commit eecad10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tools/rust-analyzer/crates/hir-ty/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ 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.
extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
#[cfg(feature = "in-rust-tree")]
extern crate rustc_pattern_analysis;

#[cfg(not(feature = "in-rust-tree"))]
extern crate ra_ap_rustc_pattern_analysis as rrustc_pattern_analysisustc_pattern_analysis;

mod builder;
mod chalk_db;
Expand Down

0 comments on commit eecad10

Please # to comment.