aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r--crates/ra_ide_api/src/mock_analysis.rs2
-rw-r--r--crates/ra_ide_api/tests/test/main.rs19
2 files changed, 2 insertions, 19 deletions
diff --git a/crates/ra_ide_api/src/mock_analysis.rs b/crates/ra_ide_api/src/mock_analysis.rs
index 550d69641..cb12dd0b1 100644
--- a/crates/ra_ide_api/src/mock_analysis.rs
+++ b/crates/ra_ide_api/src/mock_analysis.rs
@@ -18,7 +18,7 @@ impl MockAnalysis {
18 } 18 }
19 /// Creates `MockAnalysis` using a fixture data in the following format: 19 /// Creates `MockAnalysis` using a fixture data in the following format:
20 /// 20 ///
21 /// ```rust,ignore 21 /// ```not_rust
22 /// //- /main.rs 22 /// //- /main.rs
23 /// mod foo; 23 /// mod foo;
24 /// fn main() {} 24 /// fn main() {}
diff --git a/crates/ra_ide_api/tests/test/main.rs b/crates/ra_ide_api/tests/test/main.rs
index a83fbe07b..ff1a0e46b 100644
--- a/crates/ra_ide_api/tests/test/main.rs
+++ b/crates/ra_ide_api/tests/test/main.rs
@@ -4,7 +4,7 @@ use ra_ide_api::{
4 AnalysisChange, CrateGraph, Edition::Edition2018, Query, NavigationTarget, 4 AnalysisChange, CrateGraph, Edition::Edition2018, Query, NavigationTarget,
5 ReferenceSearchResult, 5 ReferenceSearchResult,
6}; 6};
7use ra_syntax::{TextRange, SmolStr}; 7use ra_syntax::SmolStr;
8 8
9#[test] 9#[test]
10fn test_unresolved_module_diagnostic() { 10fn test_unresolved_module_diagnostic() {
@@ -138,20 +138,3 @@ mod foo {
138 assert_eq!(s.name(), "FooInner"); 138 assert_eq!(s.name(), "FooInner");
139 assert_eq!(s.container_name(), Some(&SmolStr::new("foo"))); 139 assert_eq!(s.container_name(), Some(&SmolStr::new("foo")));
140} 140}
141
142#[test]
143#[ignore]
144fn world_symbols_include_stuff_from_macros() {
145 let (analysis, _) = single_file(
146 "
147salsa::query_group! {
148pub trait HirDatabase: SyntaxDatabase {}
149}
150 ",
151 );
152
153 let mut symbols = analysis.symbol_search(Query::new("Hir".into())).unwrap();
154 let s = symbols.pop().unwrap();
155 assert_eq!(s.name(), "HirDatabase");
156 assert_eq!(s.full_range(), TextRange::from_to(33.into(), 44.into()));
157}