Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit ece09b8

Browse files
Merge commit '27f4044df03d15c7c38a483c3e4635cf4f51807d'
This merges this commit into RLS master; it was pulled into rust-lang/rust by mistake in rust-lang/rust#97853 before it was merged into rust-lang/rls master branch. The commit in its raw form is persisted on rust-lang/rls by way of a new branch (retain-for-rustc-3d829a0922d865d7a77fb284424fd8ba6afaea3b), and after being merged into master we will bump rust-lang/rust to the latest version of rust-lang/rls master.
2 parents a00923a + 27f4044 commit ece09b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/client.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn client_test_infer_bin() {
4545
let diag = rls.wait_for_diagnostics();
4646

4747
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"));
4949
}
5050

5151
#[test]
@@ -59,7 +59,7 @@ fn client_test_infer_lib() {
5959
let diag = rls.wait_for_diagnostics();
6060

6161
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"));
6363
}
6464

6565
#[test]
@@ -74,7 +74,7 @@ fn client_test_infer_custom_bin() {
7474
let diag = rls.wait_for_diagnostics();
7575

7676
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"));
7878
}
7979

8080
/// Test includes window/progress regression testing
@@ -1979,7 +1979,7 @@ fn client_infer_lib() {
19791979
assert!(diag.uri.as_str().ends_with("src/lib.rs"));
19801980
assert_eq!(diag.diagnostics.len(), 1);
19811981
assert_eq!(diag.diagnostics[0].severity, Some(DiagnosticSeverity::Warning));
1982-
assert!(diag.diagnostics[0].message.contains("struct is never constructed: `UnusedLib`"));
1982+
assert!(diag.diagnostics[0].message.contains("struct `UnusedLib` is never constructed"));
19831983
}
19841984

19851985
#[test]

0 commit comments

Comments
 (0)