diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_arena/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_assists/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_batch/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_cfg/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_db/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_fmt/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_hir/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_hir/src/ty.rs | 4 | ||||
-rw-r--r-- | crates/ra_hir_def/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir_expand/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_ide_api/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_lsp_server/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_mbe/Cargo.toml | 4 | ||||
-rw-r--r-- | crates/ra_parser/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_prof/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_project_model/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_syntax/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_text_edit/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_tt/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_vfs_glob/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/test_utils/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/test_utils/src/marks.rs | 4 |
23 files changed, 65 insertions, 6 deletions
diff --git a/crates/ra_arena/Cargo.toml b/crates/ra_arena/Cargo.toml index 9328c1f50..d287dbb73 100644 --- a/crates/ra_arena/Cargo.toml +++ b/crates/ra_arena/Cargo.toml | |||
@@ -3,3 +3,6 @@ edition = "2018" | |||
3 | name = "ra_arena" | 3 | name = "ra_arena" |
4 | version = "0.1.0" | 4 | version = "0.1.0" |
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | |||
7 | [lib] | ||
8 | doctest = false | ||
diff --git a/crates/ra_assists/Cargo.toml b/crates/ra_assists/Cargo.toml index 125c6222d..434e6656c 100644 --- a/crates/ra_assists/Cargo.toml +++ b/crates/ra_assists/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_assists" | |||
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 | format-buf = "1.0.0" | 11 | format-buf = "1.0.0" |
9 | join_to_string = "0.1.3" | 12 | join_to_string = "0.1.3" |
diff --git a/crates/ra_batch/Cargo.toml b/crates/ra_batch/Cargo.toml index d08c5ceac..35626d77d 100644 --- a/crates/ra_batch/Cargo.toml +++ b/crates/ra_batch/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_batch" | |||
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 | rustc-hash = "1.0" | 12 | rustc-hash = "1.0" |
diff --git a/crates/ra_cfg/Cargo.toml b/crates/ra_cfg/Cargo.toml index b28affc3a..dd5ff88b0 100644 --- a/crates/ra_cfg/Cargo.toml +++ b/crates/ra_cfg/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_cfg" | |||
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 | rustc-hash = "1.0.1" | 11 | rustc-hash = "1.0.1" |
9 | 12 | ||
diff --git a/crates/ra_db/Cargo.toml b/crates/ra_db/Cargo.toml index bf1f7920c..4ec09b6d9 100644 --- a/crates/ra_db/Cargo.toml +++ b/crates/ra_db/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_db" | |||
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 | salsa = "0.13.0" | 11 | salsa = "0.13.0" |
9 | relative-path = "1.0.0" | 12 | relative-path = "1.0.0" |
diff --git a/crates/ra_fmt/Cargo.toml b/crates/ra_fmt/Cargo.toml index ba7b3ceac..9969d4746 100644 --- a/crates/ra_fmt/Cargo.toml +++ b/crates/ra_fmt/Cargo.toml | |||
@@ -5,6 +5,9 @@ version = "0.1.0" | |||
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | publish = false | 6 | publish = false |
7 | 7 | ||
8 | [lib] | ||
9 | doctest = false | ||
10 | |||
8 | [dependencies] | 11 | [dependencies] |
9 | itertools = "0.8.0" | 12 | itertools = "0.8.0" |
10 | 13 | ||
diff --git a/crates/ra_hir/Cargo.toml b/crates/ra_hir/Cargo.toml index 20f6e3649..42ddfecc9 100644 --- a/crates/ra_hir/Cargo.toml +++ b/crates/ra_hir/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_hir" | |||
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 | arrayvec = "0.5.1" | 11 | arrayvec = "0.5.1" |
9 | log = "0.4.5" | 12 | log = "0.4.5" |
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs index a54135188..b7f50b714 100644 --- a/crates/ra_hir/src/ty.rs +++ b/crates/ra_hir/src/ty.rs | |||
@@ -79,7 +79,7 @@ pub enum TypeCtor { | |||
79 | /// | 79 | /// |
80 | /// For example the type of `bar` here: | 80 | /// For example the type of `bar` here: |
81 | /// | 81 | /// |
82 | /// ```rust | 82 | /// ``` |
83 | /// fn foo() -> i32 { 1 } | 83 | /// fn foo() -> i32 { 1 } |
84 | /// let bar = foo; // bar: fn() -> i32 {foo} | 84 | /// let bar = foo; // bar: fn() -> i32 {foo} |
85 | /// ``` | 85 | /// ``` |
@@ -89,7 +89,7 @@ pub enum TypeCtor { | |||
89 | /// | 89 | /// |
90 | /// For example the type of `bar` here: | 90 | /// For example the type of `bar` here: |
91 | /// | 91 | /// |
92 | /// ```rust | 92 | /// ``` |
93 | /// fn foo() -> i32 { 1 } | 93 | /// fn foo() -> i32 { 1 } |
94 | /// let bar: fn() -> i32 = foo; | 94 | /// let bar: fn() -> i32 = foo; |
95 | /// ``` | 95 | /// ``` |
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 { () => {} } |
diff --git a/crates/ra_hir_expand/Cargo.toml b/crates/ra_hir_expand/Cargo.toml index 8f29bf7d9..c60152a79 100644 --- a/crates/ra_hir_expand/Cargo.toml +++ b/crates/ra_hir_expand/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_hir_expand" | |||
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 | 12 | ||
diff --git a/crates/ra_ide_api/Cargo.toml b/crates/ra_ide_api/Cargo.toml index fa353b5dd..15346f388 100644 --- a/crates/ra_ide_api/Cargo.toml +++ b/crates/ra_ide_api/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_ide_api" | |||
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 | [features] | 10 | [features] |
8 | wasm = [] | 11 | wasm = [] |
9 | 12 | ||
diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml index 743f6a60a..72dbe06dc 100644 --- a/crates/ra_lsp_server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_lsp_server" | |||
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 | threadpool = "1.7.1" | 11 | threadpool = "1.7.1" |
9 | relative-path = "1.0.0" | 12 | relative-path = "1.0.0" |
diff --git a/crates/ra_mbe/Cargo.toml b/crates/ra_mbe/Cargo.toml index b02e45ee3..a3fc01f63 100644 --- a/crates/ra_mbe/Cargo.toml +++ b/crates/ra_mbe/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_mbe" | |||
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 | ra_syntax = { path = "../ra_syntax" } | 11 | ra_syntax = { path = "../ra_syntax" } |
9 | ra_parser = { path = "../ra_parser" } | 12 | ra_parser = { path = "../ra_parser" } |
@@ -14,4 +17,3 @@ log = "0.4.5" | |||
14 | 17 | ||
15 | [dev-dependencies] | 18 | [dev-dependencies] |
16 | test_utils = { path = "../test_utils" } | 19 | test_utils = { path = "../test_utils" } |
17 | |||
diff --git a/crates/ra_parser/Cargo.toml b/crates/ra_parser/Cargo.toml index b110e2bc6..0da581fd5 100644 --- a/crates/ra_parser/Cargo.toml +++ b/crates/ra_parser/Cargo.toml | |||
@@ -5,5 +5,8 @@ version = "0.1.0" | |||
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | publish = false | 6 | publish = false |
7 | 7 | ||
8 | [lib] | ||
9 | doctest = false | ||
10 | |||
8 | [dependencies] | 11 | [dependencies] |
9 | drop_bomb = "0.1.4" | 12 | drop_bomb = "0.1.4" |
diff --git a/crates/ra_prof/Cargo.toml b/crates/ra_prof/Cargo.toml index 751bcdeb8..382e6219a 100644 --- a/crates/ra_prof/Cargo.toml +++ b/crates/ra_prof/Cargo.toml | |||
@@ -5,6 +5,9 @@ version = "0.1.0" | |||
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | publish = false | 6 | publish = false |
7 | 7 | ||
8 | [lib] | ||
9 | doctest = false | ||
10 | |||
8 | [dependencies] | 11 | [dependencies] |
9 | once_cell = "1.0.1" | 12 | once_cell = "1.0.1" |
10 | itertools = "0.8.0" | 13 | itertools = "0.8.0" |
diff --git a/crates/ra_project_model/Cargo.toml b/crates/ra_project_model/Cargo.toml index b31c95903..69edc3c66 100644 --- a/crates/ra_project_model/Cargo.toml +++ b/crates/ra_project_model/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_project_model" | |||
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 | rustc-hash = "1.0" | 12 | rustc-hash = "1.0" |
diff --git a/crates/ra_syntax/Cargo.toml b/crates/ra_syntax/Cargo.toml index 9c0e856e8..45a18a73f 100644 --- a/crates/ra_syntax/Cargo.toml +++ b/crates/ra_syntax/Cargo.toml | |||
@@ -7,6 +7,9 @@ license = "MIT OR Apache-2.0" | |||
7 | description = "Comment and whitespace preserving parser for the Rust langauge" | 7 | description = "Comment and whitespace preserving parser for the Rust langauge" |
8 | repository = "https://github.com/rust-analyzer/rust-analyzer" | 8 | repository = "https://github.com/rust-analyzer/rust-analyzer" |
9 | 9 | ||
10 | [lib] | ||
11 | doctest = false | ||
12 | |||
10 | [dependencies] | 13 | [dependencies] |
11 | itertools = "0.8.0" | 14 | itertools = "0.8.0" |
12 | rowan = "0.6.1" | 15 | rowan = "0.6.1" |
diff --git a/crates/ra_text_edit/Cargo.toml b/crates/ra_text_edit/Cargo.toml index b40026004..8573c521a 100644 --- a/crates/ra_text_edit/Cargo.toml +++ b/crates/ra_text_edit/Cargo.toml | |||
@@ -5,6 +5,9 @@ version = "0.1.0" | |||
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | publish = false | 6 | publish = false |
7 | 7 | ||
8 | [lib] | ||
9 | doctest = false | ||
10 | |||
8 | [dependencies] | 11 | [dependencies] |
9 | text_unit = "0.1.6" | 12 | text_unit = "0.1.6" |
10 | 13 | ||
diff --git a/crates/ra_tt/Cargo.toml b/crates/ra_tt/Cargo.toml index 3fcc7f085..b8dceb92a 100644 --- a/crates/ra_tt/Cargo.toml +++ b/crates/ra_tt/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_tt" | |||
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 | # ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here | 11 | # ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here |
9 | # to reduce number of compilations | 12 | # to reduce number of compilations |
diff --git a/crates/ra_vfs_glob/Cargo.toml b/crates/ra_vfs_glob/Cargo.toml index 83749675f..094d6d6f4 100644 --- a/crates/ra_vfs_glob/Cargo.toml +++ b/crates/ra_vfs_glob/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "ra_vfs_glob" | |||
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 | ra_vfs = "0.5.0" | 11 | ra_vfs = "0.5.0" |
9 | globset = "0.4.4" | 12 | globset = "0.4.4" |
diff --git a/crates/test_utils/Cargo.toml b/crates/test_utils/Cargo.toml index 0be9c3665..a71366cc4 100644 --- a/crates/test_utils/Cargo.toml +++ b/crates/test_utils/Cargo.toml | |||
@@ -4,6 +4,9 @@ name = "test_utils" | |||
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 | difference = "2.0.0" | 11 | difference = "2.0.0" |
9 | text_unit = "0.1.2" | 12 | text_unit = "0.1.2" |
diff --git a/crates/test_utils/src/marks.rs b/crates/test_utils/src/marks.rs index 1c268b49c..fe1813947 100644 --- a/crates/test_utils/src/marks.rs +++ b/crates/test_utils/src/marks.rs | |||
@@ -4,7 +4,7 @@ | |||
4 | //! See <https://matklad.github.io/2018/06/18/a-trick-for-test-maintenance.html> | 4 | //! See <https://matklad.github.io/2018/06/18/a-trick-for-test-maintenance.html> |
5 | //! for details, but the TL;DR is that you write your test as | 5 | //! for details, but the TL;DR is that you write your test as |
6 | //! | 6 | //! |
7 | //! ```rust,no_run | 7 | //! ``` |
8 | //! #[test] | 8 | //! #[test] |
9 | //! fn test_foo() { | 9 | //! fn test_foo() { |
10 | //! covers!(test_foo); | 10 | //! covers!(test_foo); |
@@ -13,7 +13,7 @@ | |||
13 | //! | 13 | //! |
14 | //! and in the code under test you write | 14 | //! and in the code under test you write |
15 | //! | 15 | //! |
16 | //! ```rust,no_run | 16 | //! ``` |
17 | //! # use test_utils::tested_by; | 17 | //! # use test_utils::tested_by; |
18 | //! # fn some_condition() -> bool { true } | 18 | //! # fn some_condition() -> bool { true } |
19 | //! fn foo() { | 19 | //! fn foo() { |