mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-19 08:40:24 +00:00
Revert "Support disabling rustc build scripts"
This reverts commit ddce6bb282
.
This commit is contained in:
parent
ddce6bb282
commit
bbecea03fd
10 changed files with 12 additions and 60 deletions
|
@ -274,19 +274,12 @@ impl ProjectWorkspace {
|
|||
crate_graph
|
||||
}
|
||||
|
||||
pub fn collect_build_data_configs(
|
||||
&self,
|
||||
collector: &mut BuildDataCollector,
|
||||
for_private: bool,
|
||||
) {
|
||||
pub fn collect_build_data_configs(&self, collector: &mut BuildDataCollector) {
|
||||
match self {
|
||||
ProjectWorkspace::Cargo { cargo, rustc, .. } => {
|
||||
collector.add_config(&cargo.workspace_root(), cargo.build_data_config().clone());
|
||||
if for_private {
|
||||
if let Some(rustc) = rustc {
|
||||
collector
|
||||
.add_config(rustc.workspace_root(), rustc.build_data_config().clone());
|
||||
}
|
||||
if let Some(rustc) = rustc {
|
||||
collector.add_config(rustc.workspace_root(), rustc.build_data_config().clone());
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue