From 1c057dc3c1b15eafd7ca682e371a3ba3d66daed4 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 3 Mar 2021 19:10:56 +0100 Subject: Remove incorrect broken test `Struct` cannot be named at all in that position, since `super` doesn't resolve to the block scope --- crates/hir_def/src/find_path.rs | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'crates/hir_def/src/find_path.rs') diff --git a/crates/hir_def/src/find_path.rs b/crates/hir_def/src/find_path.rs index 3e19a7702..3a98ffbaa 100644 --- a/crates/hir_def/src/find_path.rs +++ b/crates/hir_def/src/find_path.rs @@ -861,30 +861,6 @@ mod tests { ); } - #[test] - #[ignore] - fn inner_items_from_parent_module() { - // FIXME: ItemTree currently associates all inner items with `main`. Luckily, this sort of - // code is very rare, so this isn't terrible. - // To fix it, we should probably build dedicated `ItemTree`s for inner items, and not store - // them in the file's main ItemTree. This would also allow us to stop parsing function - // bodies when we only want to compute the crate's main DefMap. - check_found_path( - r#" - fn main() { - struct Struct {} - mod module { - $0 - } - } - "#, - "super::Struct", - "super::Struct", - "super::Struct", - "super::Struct", - ); - } - #[test] fn outer_items_with_inner_items_present() { check_found_path( -- cgit v1.2.3