diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-09 15:19:14 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-09 15:19:14 +0100 |
commit | f1d084fbd9504497aed24b907b03247bfcd31675 (patch) | |
tree | 2e4d75008c01531075bced1596ec65047d74ca91 /crates/rust-analyzer/src/main_loop.rs | |
parent | 6132111f87a6891db28ce37909607034c228f7a9 (diff) | |
parent | 65d9966a4f6c35b63f97c16f5f62f83a04574f3e (diff) |
Merge #5282
5282: Move diagnostics tests to expect r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 5900886e7..4e556bd50 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -238,7 +238,7 @@ impl GlobalState { | |||
238 | &workspace_root, | 238 | &workspace_root, |
239 | ); | 239 | ); |
240 | for diag in diagnostics { | 240 | for diag in diagnostics { |
241 | match url_to_file_id(&self.vfs.read().0, &diag.location.uri) { | 241 | match url_to_file_id(&self.vfs.read().0, &diag.url) { |
242 | Ok(file_id) => self.diagnostics.add_check_diagnostic( | 242 | Ok(file_id) => self.diagnostics.add_check_diagnostic( |
243 | file_id, | 243 | file_id, |
244 | diag.diagnostic, | 244 | diag.diagnostic, |