Skip to content

Commit

Permalink
delete arg_path, change arg_path to input
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Mar 30, 2024
1 parent a15bc55 commit 44c4b2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/tools/run-make-support/src/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ impl Rustc {
self
}

/// Generic file path provider.
pub fn arg_path<P>(&mut self, path: P) -> &mut Self
where
P: AsRef<Path>,
{
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");
Expand Down
2 changes: 1 addition & 1 deletion tests/run-make/core-no-fp-fmt-parse/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 44c4b2b

Please sign in to comment.