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();
}