We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
path
run-make-support
1 parent f21554f commit f8e25a6Copy full SHA for f8e25a6
src/tools/run-make-support/src/lib.rs
@@ -76,6 +76,11 @@ pub fn htmldocck() -> Command {
76
python
77
}
78
79
+/// Returns the path for a local test file.
80
+pub fn path<P: AsRef<Path>>(p: P) -> PathBuf {
81
+ cwd().join(p.as_ref())
82
+}
83
+
84
/// Path to the root rust-lang/rust source checkout.
85
pub fn source_root() -> PathBuf {
86
env_var("SOURCE_ROOT").into()
0 commit comments