@@ -1011,7 +1011,8 @@ fn client_find_definitions() {
1011
1011
let root_path = p. root ( ) ;
1012
1012
let mut rls = p. spawn_rls_async ( ) ;
1013
1013
1014
- let opts = json ! ( { "settings" : { "rust" : { "racer_completion" : false } } } ) ;
1014
+ // FIXME: Without `all_targets=false`, this test will randomly fail.
1015
+ let opts = json ! ( { "settings" : { "rust" : { "racer_completion" : false , "all_targets" : false } } } ) ;
1015
1016
rls. request :: < Initialize > ( 0 , initialize_params_with_opts ( root_path, opts) ) ;
1016
1017
1017
1018
rls. wait_for_indexing ( ) ;
@@ -1398,7 +1399,9 @@ fn client_hover() {
1398
1399
let root_path = p. root ( ) ;
1399
1400
let mut rls = p. spawn_rls_async ( ) ;
1400
1401
1401
- rls. request :: < Initialize > ( 0 , initialize_params ( root_path) ) ;
1402
+ // FIXME: Without `all_targets=false`, this test will randomly fail.
1403
+ let opts = json ! ( { "settings" : { "rust" : { "all_targets" : false } } } ) ;
1404
+ rls. request :: < Initialize > ( 0 , initialize_params_with_opts ( root_path, opts) ) ;
1402
1405
1403
1406
rls. wait_for_indexing ( ) ;
1404
1407
@@ -1661,7 +1664,9 @@ fn client_highlight() {
1661
1664
let root_path = p. root ( ) ;
1662
1665
let mut rls = p. spawn_rls_async ( ) ;
1663
1666
1664
- rls. request :: < Initialize > ( 0 , initialize_params ( root_path) ) ;
1667
+ // FIXME: Without `all_targets=false`, this test will randomly fail.
1668
+ let opts = json ! ( { "settings" : { "rust" : { "all_targets" : false } } } ) ;
1669
+ rls. request :: < Initialize > ( 0 , initialize_params_with_opts ( root_path, opts) ) ;
1665
1670
1666
1671
rls. wait_for_indexing ( ) ;
1667
1672
@@ -1695,7 +1700,9 @@ fn client_rename() {
1695
1700
let root_path = p. root ( ) ;
1696
1701
let mut rls = p. spawn_rls_async ( ) ;
1697
1702
1698
- rls. request :: < Initialize > ( 0 , initialize_params ( root_path) ) ;
1703
+ // FIXME: Without `all_targets=false`, this test will randomly fail.
1704
+ let opts = json ! ( { "settings" : { "rust" : { "all_targets" : false } } } ) ;
1705
+ rls. request :: < Initialize > ( 0 , initialize_params_with_opts ( root_path, opts) ) ;
1699
1706
1700
1707
rls. wait_for_indexing ( ) ;
1701
1708
0 commit comments