File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ impl PathSet {
291
291
const PATH_REMAP : & [ ( & str , & [ & str ] ) ] = & [
292
292
// config.toml uses `rust-analyzer-proc-macro-srv`, but the
293
293
// 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" ] ) ,
295
295
// Make `x test tests` function the same as `x t tests/*`
296
296
(
297
297
"tests" ,
Original file line number Diff line number Diff line change @@ -115,6 +115,19 @@ fn test_intersection() {
115
115
assert_eq ! ( command_paths, vec![ Path :: new( "library/stdarch" ) ] ) ;
116
116
}
117
117
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
+
118
131
#[ test]
119
132
fn test_exclude ( ) {
120
133
let mut config = configure ( "test" , & [ "A" ] , & [ "A" ] ) ;
You can’t perform that action at this time.
0 commit comments