add FIXME for making the cargo cmd properly typed

This commit is contained in:
Ralf Jung 2024-03-30 15:09:38 +01:00
parent 288daeb14f
commit 4797fba3b7

View File

@ -1318,7 +1318,7 @@ impl<'a> Builder<'a> {
compiler: Compiler, compiler: Compiler,
mode: Mode, mode: Mode,
target: TargetSelection, target: TargetSelection,
cmd: &str, cmd: &str, // FIXME make this properly typed
) -> Command { ) -> Command {
let mut cargo; let mut cargo;
if cmd == "clippy" { if cmd == "clippy" {
@ -1392,7 +1392,7 @@ impl<'a> Builder<'a> {
mode: Mode, mode: Mode,
source_type: SourceType, source_type: SourceType,
target: TargetSelection, target: TargetSelection,
cmd: &str, cmd: &str, // FIXME make this properly typed
) -> Cargo { ) -> Cargo {
let mut cargo = self.bare_cargo(compiler, mode, target, cmd); let mut cargo = self.bare_cargo(compiler, mode, target, cmd);
let out_dir = self.stage_out(compiler, mode); let out_dir = self.stage_out(compiler, mode);
@ -2100,7 +2100,7 @@ impl<'a> Builder<'a> {
rustflags.arg("-Zinline-mir"); rustflags.arg("-Zinline-mir");
} }
if builder.config.rustc_parallel if self.config.rustc_parallel
&& matches!(mode, Mode::ToolRustc | Mode::Rustc | Mode::Codegen) && matches!(mode, Mode::ToolRustc | Mode::Rustc | Mode::Codegen)
{ {
// keep in sync with `bootstrap/lib.rs:Build::rustc_features` // keep in sync with `bootstrap/lib.rs:Build::rustc_features`
@ -2342,7 +2342,7 @@ impl Cargo {
mode: Mode, mode: Mode,
source_type: SourceType, source_type: SourceType,
target: TargetSelection, target: TargetSelection,
cmd: &str, cmd: &str, // FIXME make this properly typed
) -> Cargo { ) -> Cargo {
let mut cargo = builder.cargo(compiler, mode, source_type, target, cmd); let mut cargo = builder.cargo(compiler, mode, source_type, target, cmd);
cargo.configure_linker(builder); cargo.configure_linker(builder);
@ -2356,7 +2356,7 @@ impl Cargo {
mode: Mode, mode: Mode,
source_type: SourceType, source_type: SourceType,
target: TargetSelection, target: TargetSelection,
cmd: &str, cmd: &str, // FIXME make this properly typed
) -> Cargo { ) -> Cargo {
builder.cargo(compiler, mode, source_type, target, cmd) builder.cargo(compiler, mode, source_type, target, cmd)
} }