diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-19 16:04:24 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-19 16:04:24 +0000 |
commit | aee2eee3626020cbfa338d94f5371b0d3c8d82e3 (patch) | |
tree | 152def082ac169cc667aa6efee82cd02b005b45d /crates/ra_hir_def/src/nameres | |
parent | a766f63650aa08697f68e749d274c2c84d1e3eee (diff) | |
parent | 43ed3d1196164c96d025745c42f261930b832911 (diff) |
Merge #2597
2597: Handle start imports in import groups r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/nameres')
-rw-r--r-- | crates/ra_hir_def/src/nameres/tests/globs.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/nameres/tests/globs.rs b/crates/ra_hir_def/src/nameres/tests/globs.rs index 5b03fe365..5e24cb94d 100644 --- a/crates/ra_hir_def/src/nameres/tests/globs.rs +++ b/crates/ra_hir_def/src/nameres/tests/globs.rs | |||
@@ -112,3 +112,24 @@ fn glob_enum() { | |||
112 | "### | 112 | "### |
113 | ); | 113 | ); |
114 | } | 114 | } |
115 | |||
116 | #[test] | ||
117 | fn glob_enum_group() { | ||
118 | covers!(glob_enum_group); | ||
119 | let map = def_map( | ||
120 | " | ||
121 | //- /lib.rs | ||
122 | enum Foo { | ||
123 | Bar, Baz | ||
124 | } | ||
125 | use self::Foo::{*}; | ||
126 | ", | ||
127 | ); | ||
128 | assert_snapshot!(map, @r###" | ||
129 | ⋮crate | ||
130 | ⋮Bar: t v | ||
131 | ⋮Baz: t v | ||
132 | ⋮Foo: t | ||
133 | "### | ||
134 | ); | ||
135 | } | ||