diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-03 18:11:56 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-03 18:11:56 +0000 |
commit | 607716d213b88eddd34693c2e877c33bdd68aad1 (patch) | |
tree | af32d74c83e1680bc97a119a23bb92e603ab7efb /crates/hir_def/src | |
parent | 603481f534e7da99dc759e0d25f25f18a100ac10 (diff) | |
parent | 1c057dc3c1b15eafd7ca682e371a3ba3d66daed4 (diff) |
Merge #7862
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 <[email protected]>
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/find_path.rs | 24 |
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#" |