This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ impl PathSet {
291291const PATH_REMAP : & [ ( & str , & [ & str ] ) ] = & [
292292 // config.toml uses `rust-analyzer-proc-macro-srv`, but the
293293 // actual path is `proc-macro-srv-cli`
294- ( "rust-analyzer-proc-macro-srv" , & [ "proc-macro-srv-cli" ] ) ,
294+ ( "rust-analyzer-proc-macro-srv" , & [ "src/tools/rust-analyzer/crates/ proc-macro-srv-cli" ] ) ,
295295 // Make `x test tests` function the same as `x t tests/*`
296296 (
297297 "tests" ,
Original file line number Diff line number Diff line change @@ -115,6 +115,19 @@ fn test_intersection() {
115115 assert_eq ! ( command_paths, vec![ Path :: new( "library/stdarch" ) ] ) ;
116116}
117117
118+ #[ test]
119+ fn validate_path_remap ( ) {
120+ let build = Build :: new ( configure ( "test" , & [ "A" ] , & [ "A" ] ) ) ;
121+
122+ PATH_REMAP
123+ . iter ( )
124+ . flat_map ( |( _, paths) | paths. iter ( ) )
125+ . map ( |path| build. src . join ( path) )
126+ . for_each ( |path| {
127+ assert ! ( path. exists( ) , "{} should exist." , path. display( ) ) ;
128+ } ) ;
129+ }
130+
118131#[ test]
119132fn test_exclude ( ) {
120133 let mut config = configure ( "test" , & [ "A" ] , & [ "A" ] ) ;
You can’t perform that action at this time.
0 commit comments