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

Commit

Permalink
Fix test for borrow_error as it checks the output of something with s…
Browse files Browse the repository at this point in the history
…pans

The message is a bit useless at the moment but LSP does not have a good
way to do multi-span and it might be best to leave this mildly useless
message until they do so instead of special-casing it to not appear.

Related: microsoft/vscode#1927
  • Loading branch information
nelsonjchen committed Aug 20, 2017
1 parent 4a3b44e commit 304b97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ fn test_borrow_error() {
ls_server::ServerStateChange::Continue);
expect_messages(results.clone(), &[ExpectedMessage::new(Some(0)).expect_contains("capabilities"),
ExpectedMessage::new(None).expect_contains("diagnosticsBegin"),
ExpectedMessage::new(None).expect_contains(r#""message":"cannot borrow `x` as mutable more than once at a time""#),
ExpectedMessage::new(None).expect_contains(r#""message":"cannot borrow `x` as mutable more than once at a time\nsecond mutable borrow occurs here""#),
ExpectedMessage::new(None).expect_contains("diagnosticsEnd")]);
}

Expand Down

0 comments on commit 304b97b

Please sign in to comment.