@@ -45,7 +45,7 @@ fn client_test_infer_bin() {
45
45
let diag = rls. wait_for_diagnostics ( ) ;
46
46
47
47
assert ! ( diag. uri. as_str( ) . ends_with( "src/main.rs" ) ) ;
48
- assert ! ( diag. diagnostics[ 0 ] . message. contains( "struct is never constructed: `UnusedBin` " ) ) ;
48
+ assert ! ( diag. diagnostics[ 0 ] . message. contains( "struct `UnusedBin` is never constructed" ) ) ;
49
49
}
50
50
51
51
#[ test]
@@ -59,7 +59,7 @@ fn client_test_infer_lib() {
59
59
let diag = rls. wait_for_diagnostics ( ) ;
60
60
61
61
assert ! ( diag. uri. as_str( ) . ends_with( "src/lib.rs" ) ) ;
62
- assert ! ( diag. diagnostics[ 0 ] . message. contains( "struct is never constructed: `UnusedLib` " ) ) ;
62
+ assert ! ( diag. diagnostics[ 0 ] . message. contains( "struct `UnusedLib` is never constructed" ) ) ;
63
63
}
64
64
65
65
#[ test]
@@ -74,7 +74,7 @@ fn client_test_infer_custom_bin() {
74
74
let diag = rls. wait_for_diagnostics ( ) ;
75
75
76
76
assert ! ( diag. uri. as_str( ) . ends_with( "src/custom_bin.rs" ) ) ;
77
- assert ! ( diag. diagnostics[ 0 ] . message. contains( "struct is never constructed: `UnusedCustomBin` " ) ) ;
77
+ assert ! ( diag. diagnostics[ 0 ] . message. contains( "struct `UnusedCustomBin` is never constructed" ) ) ;
78
78
}
79
79
80
80
/// Test includes window/progress regression testing
@@ -1961,7 +1961,7 @@ fn client_infer_lib() {
1961
1961
assert ! ( diag. uri. as_str( ) . ends_with( "src/lib.rs" ) ) ;
1962
1962
assert_eq ! ( diag. diagnostics. len( ) , 1 ) ;
1963
1963
assert_eq ! ( diag. diagnostics[ 0 ] . severity, Some ( DiagnosticSeverity :: Warning ) ) ;
1964
- assert ! ( diag. diagnostics[ 0 ] . message. contains( "struct is never constructed: `UnusedLib` " ) ) ;
1964
+ assert ! ( diag. diagnostics[ 0 ] . message. contains( "struct `UnusedLib` is never constructed" ) ) ;
1965
1965
}
1966
1966
1967
1967
#[ test]
0 commit comments