Skip to content

Commit 6f2fae1

Browse files
committed
Remove now unused context arg
1 parent cf496db commit 6f2fae1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cargo/core/compiler/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
224224
let mut unstable_opts = false;
225225
let mut args = compiler::extern_args(&self, unit, &mut unstable_opts)?;
226226
args.extend(compiler::lto_args(&self, unit));
227-
args.extend(compiler::features_args(&self, unit));
227+
args.extend(compiler::features_args(unit));
228228
args.extend(compiler::check_cfg_args(&self, unit));
229229

230230
let script_meta = self.find_build_script_metadata(unit);

src/cargo/core/compiler/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ fn rustdoc(cx: &mut Context<'_, '_>, unit: &Unit) -> CargoResult<Work> {
645645
paths::create_dir_all(&doc_dir)?;
646646

647647
rustdoc.arg("-o").arg(&doc_dir);
648-
rustdoc.args(&features_args(cx, unit));
648+
rustdoc.args(&features_args(unit));
649649
rustdoc.args(&check_cfg_args(cx, unit));
650650

651651
add_error_format_and_color(cx, &mut rustdoc);
@@ -966,7 +966,7 @@ fn build_base_args(
966966
cmd.arg("--cfg").arg("test");
967967
}
968968

969-
cmd.args(&features_args(cx, unit));
969+
cmd.args(&features_args(unit));
970970
cmd.args(&check_cfg_args(cx, unit));
971971

972972
let meta = cx.files().metadata(unit);
@@ -1042,7 +1042,7 @@ fn build_base_args(
10421042
}
10431043

10441044
/// All active features for the unit passed as --cfg
1045-
fn features_args(_cx: &Context<'_, '_>, unit: &Unit) -> Vec<OsString> {
1045+
fn features_args(unit: &Unit) -> Vec<OsString> {
10461046
let mut args = Vec::with_capacity(unit.features.len() * 2);
10471047

10481048
for feat in &unit.features {

0 commit comments

Comments
 (0)