From e5a43c0e7a1f05c7faf0275f782de4b6cb2e813c Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Thu, 24 Jul 2025 16:22:11 -0400 Subject: [PATCH] refactor: rename arg `mode` to `intent` This was me overlooked when doing rust-lang/cargo#15601 --- src/cargo/util/command_prelude.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo/util/command_prelude.rs b/src/cargo/util/command_prelude.rs index 0a636f8a4..c60316452 100644 --- a/src/cargo/util/command_prelude.rs +++ b/src/cargo/util/command_prelude.rs @@ -732,7 +732,7 @@ Run `{cmd}` to see possible targets." fn compile_options( &self, gctx: &GlobalContext, - mode: UserIntent, + intent: UserIntent, workspace: Option<&Workspace<'_>>, profile_checking: ProfileChecking, ) -> CargoResult { @@ -805,7 +805,7 @@ Run `{cmd}` to see possible targets." self.jobs()?, self.keep_going(), &self.targets()?, - mode, + intent, )?; build_config.message_format = message_format.unwrap_or(MessageFormat::Human); build_config.requested_profile = self.get_profile_name("dev", profile_checking)?; @@ -901,11 +901,11 @@ Run `{cmd}` to see possible targets." fn compile_options_for_single_package( &self, gctx: &GlobalContext, - mode: UserIntent, + intent: UserIntent, workspace: Option<&Workspace<'_>>, profile_checking: ProfileChecking, ) -> CargoResult { - let mut compile_opts = self.compile_options(gctx, mode, workspace, profile_checking)?; + let mut compile_opts = self.compile_options(gctx, intent, workspace, profile_checking)?; let spec = self._values_of("package"); if spec.iter().any(restricted_names::is_glob_pattern) { anyhow::bail!("Glob patterns on package selection are not supported.")