Skip to content

Commit 0b76080

Browse files
committed
Fix "sync-from-ra" for rust-lang/rust
1 parent 57ad00b commit 0b76080

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

crates/hir-ty/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ extern crate rustc_next_trait_solver;
3939
#[cfg(not(feature = "in-rust-tree"))]
4040
extern crate ra_ap_rustc_next_trait_solver as rustc_next_trait_solver;
4141

42+
#[cfg(feature = "in-rust-tree")]
43+
extern crate rustc_data_structures as ena;
44+
4245
mod builder;
4346
mod chalk_db;
4447
mod chalk_ext;

crates/hir-ty/src/next_solver.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ pub type AliasTy<'db> = rustc_type_ir::AliasTy<DbInterner<'db>>;
4040
pub type PolyFnSig<'db> = Binder<'db, rustc_type_ir::FnSig<DbInterner<'db>>>;
4141
pub type TypingMode<'db> = rustc_type_ir::TypingMode<DbInterner<'db>>;
4242

43+
#[cfg(feature = "in-rust-tree")]
44+
use rustc_data_structure::sorted_map::index_map as indexmap;
45+
4346
pub type FxIndexMap<K, V> =
4447
indexmap::IndexMap<K, V, std::hash::BuildHasherDefault<rustc_hash::FxHasher>>;

0 commit comments

Comments
 (0)