Skip to content

Commit 1c057dc

Browse files
Remove incorrect broken test
`Struct` cannot be named at all in that position, since `super` doesn't resolve to the block scope
1 parent 603481f commit 1c057dc

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

crates/hir_def/src/find_path.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -861,30 +861,6 @@ mod tests {
861861
);
862862
}
863863

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-
888864
#[test]
889865
fn outer_items_with_inner_items_present() {
890866
check_found_path(

0 commit comments

Comments
 (0)