]> git.lizzy.rs Git - rust.git/commitdiff
remove ignored macro tests
authorAleksey Kladov <aleksey.kladov@gmail.com>
Tue, 19 Feb 2019 16:51:48 +0000 (19:51 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Tue, 19 Feb 2019 17:06:53 +0000 (20:06 +0300)
we need to significantly reengineer macros, so the tests as they exist
are useless

crates/ra_hir/src/nameres/tests.rs
crates/ra_ide_api/src/mock_analysis.rs
crates/ra_ide_api/tests/test/main.rs
crates/test_utils/src/lib.rs

index 6402c89c08b623453292f3d6be647a9e69825572..9b151bb0c4896e1e6ef4f893669aa9f0d4fbce70 100644 (file)
@@ -401,36 +401,6 @@ fn name_res_works_for_broken_modules() {
     );
 }
 
-#[test]
-#[ignore]
-fn item_map_contains_items_from_expansions() {
-    let (item_map, module_id) = item_map(
-        "
-        //- /lib.rs
-        mod foo;
-
-        use crate::foo::bar::Baz;
-        <|>
-
-        //- /foo/mod.rs
-        pub mod bar;
-
-        //- /foo/bar.rs
-        salsa::query_group! {
-            trait Baz {}
-        }
-    ",
-    );
-    check_module_item_map(
-        &item_map,
-        module_id,
-        "
-            Baz: t
-            foo: t
-        ",
-    );
-}
-
 #[test]
 fn item_map_using_self() {
     let (item_map, module_id) = item_map(
index 550d69641759debab912612d727611d27b1c2747..cb12dd0b120f3532fd75aca277f4269a0ea72816 100644 (file)
@@ -18,7 +18,7 @@ pub fn new() -> MockAnalysis {
     }
     /// Creates `MockAnalysis` using a fixture data in the following format:
     ///
-    /// ```rust,ignore
+    /// ```not_rust
     /// //- /main.rs
     /// mod foo;
     /// fn main() {}
index a83fbe07bfc545323361562edcc2e1de9a6b3f8f..ff1a0e46b20c800e7a62d504b6aba0bf968d23a8 100644 (file)
@@ -4,7 +4,7 @@
     AnalysisChange, CrateGraph, Edition::Edition2018, Query, NavigationTarget,
     ReferenceSearchResult,
 };
-use ra_syntax::{TextRange, SmolStr};
+use ra_syntax::SmolStr;
 
 #[test]
 fn test_unresolved_module_diagnostic() {
@@ -138,20 +138,3 @@ mod foo {
     assert_eq!(s.name(), "FooInner");
     assert_eq!(s.container_name(), Some(&SmolStr::new("foo")));
 }
-
-#[test]
-#[ignore]
-fn world_symbols_include_stuff_from_macros() {
-    let (analysis, _) = single_file(
-        "
-salsa::query_group! {
-pub trait HirDatabase: SyntaxDatabase {}
-}
-    ",
-    );
-
-    let mut symbols = analysis.symbol_search(Query::new("Hir".into())).unwrap();
-    let s = symbols.pop().unwrap();
-    assert_eq!(s.name(), "HirDatabase");
-    assert_eq!(s.full_range(), TextRange::from_to(33.into(), 44.into()));
-}
index 4d83af00ca9d6f19e179630116419952b64e339d..7f55779cf02c6a362250fdc3f0262aa5dea69554 100644 (file)
@@ -115,7 +115,7 @@ pub struct FixtureEntry {
 
 /// Parses text which looks like this:
 ///
-///  ```rust,ignore
+///  ```not_rust
 ///  //- some meta
 ///  line 1
 ///  line 2