diff options
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_hir_def/Cargo.toml b/crates/ra_hir_def/Cargo.toml index 21262be79..7e65f4c1d 100644 --- a/crates/ra_hir_def/Cargo.toml +++ b/crates/ra_hir_def/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_hir_def" | |||
4 | version = "0.1.0" | 4 | version = "0.1.0" |
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | 6 | ||
7 | [lib] | ||
8 | doctest = false | ||
9 | |||
7 | [dependencies] | 10 | [dependencies] |
8 | log = "0.4.5" | 11 | log = "0.4.5" |
9 | once_cell = "1.0.1" | 12 | once_cell = "1.0.1" |
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index c9ccb9023..8f426b097 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -165,7 +165,7 @@ where | |||
165 | /// crate::foo!(); | 165 | /// crate::foo!(); |
166 | /// ``` | 166 | /// ``` |
167 | /// | 167 | /// |
168 | /// Well, this code compiles, bacause the plain path `foo` in `use` is searched | 168 | /// Well, this code compiles, because the plain path `foo` in `use` is searched |
169 | /// in the legacy textual scope only. | 169 | /// in the legacy textual scope only. |
170 | /// ```rust | 170 | /// ```rust |
171 | /// macro_rules! foo { () => {} } | 171 | /// macro_rules! foo { () => {} } |