Skip to content

Commit cbb476e

Browse files
committed
Rewrite core-no-fp-fmt-parse in Rust
1 parent 99ef61f commit cbb476e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/run-make-support/src/rustc.rs

+7
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ impl Rustc {
104104
self
105105
}
106106

107+
/// Generic file path provider.
108+
pub fn arg_path(&mut self, path: &[&str]) -> &mut Self {
109+
let path_buf = path.iter().collect::<PathBuf>();
110+
self.cmd.arg(path_buf.to_str().unwrap());
111+
self
112+
}
113+
107114
/// Generic command arguments provider. Use `.arg("-Zname")` over `.arg("-Z").arg("arg")`.
108115
/// This method will panic if a plain `-Z` or `-C` is passed, or if `-Z <name>` or `-C <name>`
109116
/// is passed (note the space).

0 commit comments

Comments
 (0)