Skip to content

Commit b3c9aaf

Browse files
committed
refactor: rename rustflags to profile_rustflags
Apparently it was a bit confusing where `rustflags` is from when reading this piece of code.
1 parent 58b22f0 commit b3c9aaf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cargo/core/compiler/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ fn build_base_args(
998998
ref panic,
999999
incremental,
10001000
strip,
1001-
rustflags,
1001+
rustflags: profile_rustflags,
10021002
..
10031003
} = unit.profile.clone();
10041004
let test = unit.mode.is_any_test();
@@ -1078,9 +1078,7 @@ fn build_base_args(
10781078
}
10791079

10801080
cmd.args(unit.pkg.manifest().lint_rustflags());
1081-
if !rustflags.is_empty() {
1082-
cmd.args(&rustflags);
1083-
}
1081+
cmd.args(&profile_rustflags);
10841082
if let Some(args) = cx.bcx.extra_args_for(unit) {
10851083
cmd.args(args);
10861084
}

0 commit comments

Comments
 (0)