From 44c4b2bfe96f2c3b819a5243864bef9a0edd4600 Mon Sep 17 00:00:00 2001 From: Oneirical Date: Sat, 30 Mar 2024 19:39:51 -0400 Subject: [PATCH] delete arg_path, change arg_path to input --- src/tools/run-make-support/src/rustc.rs | 9 --------- tests/run-make/core-no-fp-fmt-parse/rmake.rs | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/tools/run-make-support/src/rustc.rs b/src/tools/run-make-support/src/rustc.rs index dbcfca6feedb0..1b358817a7957 100644 --- a/src/tools/run-make-support/src/rustc.rs +++ b/src/tools/run-make-support/src/rustc.rs @@ -104,15 +104,6 @@ impl Rustc { self } - /// Generic file path provider. - pub fn arg_path

(&mut self, path: P) -> &mut Self - where - P: AsRef, - { - self.cmd.arg(path.as_ref()); - self - } - /// Specify the crate type. pub fn crate_type(&mut self, crate_type: &str) -> &mut Self { self.cmd.arg("--crate-type"); diff --git a/tests/run-make/core-no-fp-fmt-parse/rmake.rs b/tests/run-make/core-no-fp-fmt-parse/rmake.rs index 36948f0564397..2748d4359c365 100644 --- a/tests/run-make/core-no-fp-fmt-parse/rmake.rs +++ b/tests/run-make/core-no-fp-fmt-parse/rmake.rs @@ -11,7 +11,7 @@ fn main() { .edition("2021") .arg("-Dwarnings") .crate_type("rlib") - .arg_path("../../../library/core/src/lib.rs") + .input("../../../library/core/src/lib.rs") .cfg("no_fp_fmt_parse") .run(); }