mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Patch cargo script root files back to manifest
This commit is contained in:
parent
0b24599cf9
commit
46f05543a2
4 changed files with 26 additions and 16 deletions
|
@ -437,7 +437,7 @@ impl ProjectWorkspace {
|
|||
detached_files: Vec<AbsPathBuf>,
|
||||
config: &CargoConfig,
|
||||
) -> Vec<anyhow::Result<ProjectWorkspace>> {
|
||||
dbg!(detached_files
|
||||
detached_files
|
||||
.into_iter()
|
||||
.map(|detached_file| {
|
||||
let dir = detached_file
|
||||
|
@ -508,7 +508,7 @@ impl ProjectWorkspace {
|
|||
cargo_script,
|
||||
})
|
||||
})
|
||||
.collect())
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Runs the build scripts for this [`ProjectWorkspace`].
|
||||
|
@ -822,7 +822,7 @@ impl ProjectWorkspace {
|
|||
} => (
|
||||
if let Some(cargo) = cargo_script {
|
||||
cargo_to_crate_graph(
|
||||
load,
|
||||
&mut |path| load(path),
|
||||
None,
|
||||
cargo,
|
||||
sysroot.as_ref().ok(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue