aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-03-03 18:10:56 +0000
committerJonas Schievink <[email protected]>2021-03-03 18:10:56 +0000
commit1c057dc3c1b15eafd7ca682e371a3ba3d66daed4 (patch)
treeaf32d74c83e1680bc97a119a23bb92e603ab7efb /crates
parent603481f534e7da99dc759e0d25f25f18a100ac10 (diff)
Remove incorrect broken test
`Struct` cannot be named at all in that position, since `super` doesn't resolve to the block scope
Diffstat (limited to 'crates')
-rw-r--r--crates/hir_def/src/find_path.rs24
1 files changed, 0 insertions, 24 deletions
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
@@ -862,30 +862,6 @@ mod tests {
862 } 862 }
863 863
864 #[test] 864 #[test]
865 #[ignore]
866 fn inner_items_from_parent_module() {
867 // FIXME: ItemTree currently associates all inner items with `main`. Luckily, this sort of
868 // code is very rare, so this isn't terrible.
869 // To fix it, we should probably build dedicated `ItemTree`s for inner items, and not store
870 // them in the file's main ItemTree. This would also allow us to stop parsing function
871 // bodies when we only want to compute the crate's main DefMap.
872 check_found_path(
873 r#"
874 fn main() {
875 struct Struct {}
876 mod module {
877 $0
878 }
879 }
880 "#,
881 "super::Struct",
882 "super::Struct",
883 "super::Struct",
884 "super::Struct",
885 );
886 }
887
888 #[test]
889 fn outer_items_with_inner_items_present() { 865 fn outer_items_with_inner_items_present() {
890 check_found_path( 866 check_found_path(
891 r#" 867 r#"