From 84c575a21201cdbeb391ff2cfae2fbbccaa76f8a Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 5 Mar 2021 00:11:07 +0200 Subject: Restrict fuzzy qualifiers for now --- crates/hir_def/src/import_map.rs | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'crates/hir_def') diff --git a/crates/hir_def/src/import_map.rs b/crates/hir_def/src/import_map.rs index 07ee7bdfd..369bc3350 100644 --- a/crates/hir_def/src/import_map.rs +++ b/crates/hir_def/src/import_map.rs @@ -1094,27 +1094,4 @@ mod tests { expect![[r#""#]], ); } - - #[test] - fn search_with_path() { - check_search( - r#" -//- /main.rs crate:main deps:dep -//- /dep.rs crate:dep -pub mod foo { - pub mod bar { - pub mod baz { - pub trait Display { - fn fmt(); - } - } - } -}"#, - "main", - Query::new("baz::fmt".to_string()).search_mode(SearchMode::Fuzzy), - expect![[r#" - dep::foo::bar::baz::Display::fmt (a) - "#]], - ); - } } -- cgit v1.2.3