diff --git a/src/cargo/core/workspace.rs b/src/cargo/core/workspace.rs index 57e91c575f5..b9b3d476748 100644 --- a/src/cargo/core/workspace.rs +++ b/src/cargo/core/workspace.rs @@ -403,9 +403,9 @@ impl<'cfg> Workspace<'cfg> { /* platform */ None, // NOTE: Since we use ConfigRelativePath, this root isn't used as // any relative paths are resolved before they'd be joined with root. - self.root(), + &Path::new("unused-relative-path"), self.unstable_features(), - None, + /* kind */ None, ) }) .collect::>>()?, @@ -418,8 +418,6 @@ impl<'cfg> Workspace<'cfg> { .warn(format!("[patch] in cargo config: {}", message))? } - let _ = nested_paths; - Ok(patch) }