Skip to content

Commit 63aed0c

Browse files
committed
refactor(gctx): Don't duplicate defaulting with Workspace
1 parent 1dacd11 commit 63aed0c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/cargo/util/context/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -653,14 +653,10 @@ impl GlobalContext {
653653

654654
/// The directory to use for intermediate build artifacts.
655655
///
656-
/// Falls back to the target directory if not specified.
657-
///
658656
/// Callers should prefer [`Workspace::build_dir`] instead.
659657
pub fn build_dir(&self, workspace_manifest_path: &PathBuf) -> CargoResult<Option<Filesystem>> {
660658
let Some(val) = &self.build_config()?.build_dir else {
661-
// For now, fallback to the previous implementation.
662-
// This will change in the future.
663-
return self.target_dir();
659+
return Ok(None);
664660
};
665661
let replacements = vec![
666662
(

0 commit comments

Comments
 (0)