aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/diagnostics.rs
diff options
context:
space:
mode:
authorSeivan Heidari <[email protected]>2019-11-15 15:30:21 +0000
committerSeivan Heidari <[email protected]>2019-11-15 15:30:21 +0000
commitcb26df950699586b314731fb70786e0db8eaa049 (patch)
tree29a1fd853757824572bfebc956d20458d827926f /crates/ra_ide_api/src/diagnostics.rs
parentc622413bc72ea56d5f62a16788d897cb61eca948 (diff)
parentc6f05abfbbfa2fd1ff06e1adeea7885151aaa768 (diff)
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer into feature/themes
Diffstat (limited to 'crates/ra_ide_api/src/diagnostics.rs')
-rw-r--r--crates/ra_ide_api/src/diagnostics.rs44
1 files changed, 22 insertions, 22 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs
index 2890a3d2b..e52ffefb3 100644
--- a/crates/ra_ide_api/src/diagnostics.rs
+++ b/crates/ra_ide_api/src/diagnostics.rs
@@ -526,28 +526,28 @@ mod tests {
526 let (analysis, file_id) = single_file("mod foo;"); 526 let (analysis, file_id) = single_file("mod foo;");
527 let diagnostics = analysis.diagnostics(file_id).unwrap(); 527 let diagnostics = analysis.diagnostics(file_id).unwrap();
528 assert_debug_snapshot!(diagnostics, @r###" 528 assert_debug_snapshot!(diagnostics, @r###"
529 [ 529 [
530 Diagnostic { 530 Diagnostic {
531 message: "unresolved module", 531 message: "unresolved module",
532 range: [0; 8), 532 range: [0; 8),
533 fix: Some( 533 fix: Some(
534 SourceChange { 534 SourceChange {
535 label: "create module", 535 label: "create module",
536 source_file_edits: [], 536 source_file_edits: [],
537 file_system_edits: [ 537 file_system_edits: [
538 CreateFile { 538 CreateFile {
539 source_root: SourceRootId( 539 source_root: SourceRootId(
540 0, 540 0,
541 ), 541 ),
542 path: "foo.rs", 542 path: "foo.rs",
543 }, 543 },
544 ], 544 ],
545 cursor_position: None, 545 cursor_position: None,
546 }, 546 },
547 ), 547 ),
548 severity: Error, 548 severity: Error,
549 }, 549 },
550 ] 550 ]
551 "###); 551 "###);
552 } 552 }
553 553