diff options
author | Florian Diebold <[email protected]> | 2019-12-26 14:49:13 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-12-26 15:23:40 +0000 |
commit | 04e8eaa14b11c432d43ad95f3766f8649da30347 (patch) | |
tree | 16b1180e9ff423276932e171f390ad97f3b7ca87 /crates/ra_hir_def/src/nameres/tests | |
parent | 1a4a3eb69bcd48d79da0e227c6e2998d7910e6a7 (diff) |
Handle privacy for modules
Diffstat (limited to 'crates/ra_hir_def/src/nameres/tests')
-rw-r--r-- | crates/ra_hir_def/src/nameres/tests/globs.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/nameres/tests/globs.rs b/crates/ra_hir_def/src/nameres/tests/globs.rs index 5f137d3a6..82d947b78 100644 --- a/crates/ra_hir_def/src/nameres/tests/globs.rs +++ b/crates/ra_hir_def/src/nameres/tests/globs.rs | |||
@@ -122,7 +122,7 @@ fn glob_privacy_2() { | |||
122 | use foo::bar::*; | 122 | use foo::bar::*; |
123 | 123 | ||
124 | //- /foo/mod.rs | 124 | //- /foo/mod.rs |
125 | pub mod bar; | 125 | mod bar; |
126 | fn Foo() {}; | 126 | fn Foo() {}; |
127 | pub struct Foo {}; | 127 | pub struct Foo {}; |
128 | 128 | ||
@@ -136,7 +136,6 @@ fn glob_privacy_2() { | |||
136 | crate | 136 | crate |
137 | Foo: t | 137 | Foo: t |
138 | PubCrateStruct: t v | 138 | PubCrateStruct: t v |
139 | bar: t | ||
140 | foo: t | 139 | foo: t |
141 | 140 | ||
142 | crate::foo | 141 | crate::foo |