mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Remove version check before using --keep-going
This commit is contained in:
parent
8f841ca9a8
commit
8ecfdec3c3
2 changed files with 7 additions and 25 deletions
|
@ -450,16 +450,10 @@ impl ProjectWorkspace {
|
|||
match &self.kind {
|
||||
ProjectWorkspaceKind::DetachedFile { cargo: Some((cargo, _)), .. }
|
||||
| ProjectWorkspaceKind::Cargo { cargo, .. } => {
|
||||
WorkspaceBuildScripts::run_for_workspace(
|
||||
config,
|
||||
cargo,
|
||||
progress,
|
||||
self.toolchain.as_ref(),
|
||||
&self.sysroot,
|
||||
)
|
||||
.with_context(|| {
|
||||
format!("Failed to run build scripts for {}", cargo.workspace_root())
|
||||
})
|
||||
WorkspaceBuildScripts::run_for_workspace(config, cargo, progress, &self.sysroot)
|
||||
.with_context(|| {
|
||||
format!("Failed to run build scripts for {}", cargo.workspace_root())
|
||||
})
|
||||
}
|
||||
ProjectWorkspaceKind::DetachedFile { cargo: None, .. }
|
||||
| ProjectWorkspaceKind::Json { .. } => Ok(WorkspaceBuildScripts::default()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue