7862: Remove incorrect broken test r=jonas-schievink a=jonas-schievink

`Struct` cannot be named at all in that position, since `super` doesn't
resolve to the block scope

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
bors[bot] 2021-03-03 18:11:56 +00:00 committed by GitHub
commit 607716d213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -861,30 +861,6 @@ struct Struct {}
);
}
#[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(