@@ -631,11 +631,11 @@ fn client_use_statement_completion_doesnt_suggest_arguments() {
631
631
///
632
632
/// ```
633
633
/// [dependencies]
634
- /// version-check = "0.5555"
634
+ /// auto-cfg = "0.5555"
635
635
/// ```
636
636
///
637
- /// * Firstly "version-check " doesn't exist, it should be "version_check "
638
- /// * Secondly version 0.5555 of "version_check " doesn't exist.
637
+ /// * Firstly "auto-cfg " doesn't exist, it should be "autocfg "
638
+ /// * Secondly version 0.5555 of "autocfg " doesn't exist.
639
639
#[ test]
640
640
fn client_dependency_typo_and_fix ( ) {
641
641
let manifest_with_dependency = |dep : & str | {
@@ -654,7 +654,7 @@ fn client_dependency_typo_and_fix() {
654
654
} ;
655
655
656
656
let p = project ( "dependency_typo" )
657
- . file ( "Cargo.toml" , & manifest_with_dependency ( r#"version-check = "0.5555""# ) )
657
+ . file ( "Cargo.toml" , & manifest_with_dependency ( r#"auto-cfg = "0.5555""# ) )
658
658
. file (
659
659
"src/main.rs" ,
660
660
r#"
@@ -672,14 +672,14 @@ fn client_dependency_typo_and_fix() {
672
672
let diag = rls. wait_for_diagnostics ( ) ;
673
673
assert_eq ! ( diag. diagnostics. len( ) , 1 ) ;
674
674
assert_eq ! ( diag. diagnostics[ 0 ] . severity, Some ( DiagnosticSeverity :: Error ) ) ;
675
- assert ! ( diag. diagnostics[ 0 ] . message. contains( "no matching package named `version-check `" ) ) ;
675
+ assert ! ( diag. diagnostics[ 0 ] . message. contains( "no matching package named `auto-cfg `" ) ) ;
676
676
677
677
let change_manifest = |contents : & str | {
678
678
std:: fs:: write ( root_path. join ( "Cargo.toml" ) , contents) . unwrap ( ) ;
679
679
} ;
680
680
681
681
// fix naming typo, we now expect a version error diagnostic
682
- change_manifest ( & manifest_with_dependency ( r#"version_check = "0.5555""# ) ) ;
682
+ change_manifest ( & manifest_with_dependency ( r#"autocfg = "0.5555""# ) ) ;
683
683
rls. notify :: < DidChangeWatchedFiles > ( DidChangeWatchedFilesParams {
684
684
changes : vec ! [ FileEvent {
685
685
uri: Url :: from_file_path( p. root( ) . join( "Cargo.toml" ) ) . unwrap( ) ,
@@ -694,8 +694,8 @@ fn client_dependency_typo_and_fix() {
694
694
695
695
// Fix version issue so no error diagnostics occur.
696
696
// This is kinda slow as cargo will compile the dependency, though I
697
- // chose version_check to minimise this as it is a very small dependency.
698
- change_manifest ( & manifest_with_dependency ( r#"version_check = "0. 1""# ) ) ;
697
+ // chose autocfg to minimise this as it is a very small dependency.
698
+ change_manifest ( & manifest_with_dependency ( r#"autocfg = "1""# ) ) ;
699
699
rls. notify :: < DidChangeWatchedFiles > ( DidChangeWatchedFilesParams {
700
700
changes : vec ! [ FileEvent {
701
701
uri: Url :: from_file_path( p. root( ) . join( "Cargo.toml" ) ) . unwrap( ) ,
0 commit comments