diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2024-03-12 09:04:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 09:04:00 -0700 |
| commit | 45cc461bfd3819e870c44950b2e1f74c3e6616a3 (patch) | |
| tree | 29c37ad8dbb4d60f3de613463ddec3ddcfb2c182 | |
| parent | 947d9602437562ebf0c981fdaadb9ec4e76de469 (diff) | |
| parent | ea22e7851f2d97b63379685258b482deb2409b8f (diff) | |
| download | rust-45cc461bfd3819e870c44950b2e1f74c3e6616a3.tar.gz rust-45cc461bfd3819e870c44950b2e1f74c3e6616a3.zip | |
Rollup merge of #122081 - onur-ozkan:validate-path-remaps, r=clubby789
validate `builder::PATH_REMAP` self-explanatory r? clubby789
| -rw-r--r-- | src/bootstrap/src/core/builder.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/src/core/builder/tests.rs | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs index d35880a31d8..18ea67c7461 100644 --- a/src/bootstrap/src/core/builder.rs +++ b/src/bootstrap/src/core/builder.rs @@ -291,7 +291,7 @@ impl PathSet { const PATH_REMAP: &[(&str, &[&str])] = &[ // config.toml uses `rust-analyzer-proc-macro-srv`, but the // actual path is `proc-macro-srv-cli` - ("rust-analyzer-proc-macro-srv", &["proc-macro-srv-cli"]), + ("rust-analyzer-proc-macro-srv", &["src/tools/rust-analyzer/crates/proc-macro-srv-cli"]), // Make `x test tests` function the same as `x t tests/*` ( "tests", diff --git a/src/bootstrap/src/core/builder/tests.rs b/src/bootstrap/src/core/builder/tests.rs index 6a1dde51603..7739303aca1 100644 --- a/src/bootstrap/src/core/builder/tests.rs +++ b/src/bootstrap/src/core/builder/tests.rs @@ -116,6 +116,19 @@ fn test_intersection() { } #[test] +fn validate_path_remap() { + let build = Build::new(configure("test", &["A"], &["A"])); + + PATH_REMAP + .iter() + .flat_map(|(_, paths)| paths.iter()) + .map(|path| build.src.join(path)) + .for_each(|path| { + assert!(path.exists(), "{} should exist.", path.display()); + }); +} + +#[test] fn test_exclude() { let mut config = configure("test", &["A"], &["A"]); config.skip = vec!["src/tools/tidy".into()]; |
