mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 20:31:59 +00:00
Cleanup toolchain info fetching
This commit is contained in:
parent
dc6cea57a2
commit
0f95e60da3
13 changed files with 197 additions and 230 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use chalk_ir::{AdtId, TyKind};
|
||||
use either::Either;
|
||||
use hir_def::db::DefDatabase;
|
||||
use project_model::{target_data_layout::RustcDataLayoutConfig, Sysroot};
|
||||
use project_model::{toolchain_info::QueryConfig, Sysroot};
|
||||
use rustc_hash::FxHashMap;
|
||||
use syntax::ToSmolStr;
|
||||
use test_fixture::WithFixture;
|
||||
|
|
@ -17,8 +17,8 @@ use crate::{
|
|||
mod closure;
|
||||
|
||||
fn current_machine_data_layout() -> String {
|
||||
project_model::target_data_layout::get(
|
||||
RustcDataLayoutConfig::Rustc(&Sysroot::empty()),
|
||||
project_model::toolchain_info::target_data_layout::get(
|
||||
QueryConfig::Rustc(&Sysroot::empty()),
|
||||
None,
|
||||
&FxHashMap::default(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue