mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
reuse fetching target data layout from rustc function
This commit is contained in:
parent
443bc7f193
commit
40cf8b45ac
5 changed files with 12 additions and 20 deletions
|
@ -25,7 +25,7 @@ mod sysroot;
|
|||
mod workspace;
|
||||
mod rustc_cfg;
|
||||
mod build_scripts;
|
||||
mod target_data_layout;
|
||||
pub mod target_data_layout;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
|
|
@ -6,7 +6,7 @@ use rustc_hash::FxHashMap;
|
|||
|
||||
use crate::{utf8_stdout, ManifestPath};
|
||||
|
||||
pub(super) fn get(
|
||||
pub fn get(
|
||||
cargo_toml: Option<&ManifestPath>,
|
||||
target: Option<&str>,
|
||||
extra_env: &FxHashMap<String, String>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue