diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-06-06 18:35:46 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-06-06 19:16:53 +0200 |
| commit | 6e1121b492b61ba5aab14004a9ef1227a1358c21 (patch) | |
| tree | f50a517532513482a6eff553396991f12b9ac89c /tests/run-make/alloc-no-sync | |
| parent | 67caf52fbc4f10cdf427f04e6cbb35c8b9d96bb7 (diff) | |
| download | rust-6e1121b492b61ba5aab14004a9ef1227a1358c21.tar.gz rust-6e1121b492b61ba5aab14004a9ef1227a1358c21.zip | |
Do not use relative paths to Rust source root in run-make tests
Diffstat (limited to 'tests/run-make/alloc-no-sync')
| -rw-r--r-- | tests/run-make/alloc-no-sync/rmake.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-make/alloc-no-sync/rmake.rs b/tests/run-make/alloc-no-sync/rmake.rs index 3a3ceed6867..29f204f3067 100644 --- a/tests/run-make/alloc-no-sync/rmake.rs +++ b/tests/run-make/alloc-no-sync/rmake.rs @@ -2,14 +2,14 @@ // when the unstable no_sync feature is turned on. // See https://github.com/rust-lang/rust/pull/84266 -use run_make_support::rustc; +use run_make_support::{rustc, source_root}; fn main() { rustc() .edition("2021") .arg("-Dwarnings") .crate_type("rlib") - .input("../../../library/alloc/src/lib.rs") + .input(source_root().join("library/alloc/src/lib.rs")) .cfg("no_sync") .run(); } |
