We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99ef61f commit cbb476eCopy full SHA for cbb476e
src/tools/run-make-support/src/rustc.rs
@@ -104,6 +104,13 @@ impl Rustc {
104
self
105
}
106
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
+
114
/// Generic command arguments provider. Use `.arg("-Zname")` over `.arg("-Z").arg("arg")`.
115
/// This method will panic if a plain `-Z` or `-C` is passed, or if `-Z <name>` or `-C <name>`
116
/// is passed (note the space).
0 commit comments