From 7e2f4b30db8a0d734b3a1fc9f6ad77b2adc9aa2a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 17 Nov 2019 18:35:05 +0300 Subject: Disable doctests --- crates/ra_arena/Cargo.toml | 3 +++ crates/ra_assists/Cargo.toml | 3 +++ crates/ra_batch/Cargo.toml | 3 +++ crates/ra_cfg/Cargo.toml | 3 +++ crates/ra_db/Cargo.toml | 3 +++ crates/ra_fmt/Cargo.toml | 3 +++ crates/ra_hir/Cargo.toml | 3 +++ crates/ra_hir/src/ty.rs | 4 ++-- crates/ra_hir_def/Cargo.toml | 3 +++ crates/ra_hir_def/src/nameres/collector.rs | 2 +- crates/ra_hir_expand/Cargo.toml | 3 +++ crates/ra_ide_api/Cargo.toml | 3 +++ crates/ra_lsp_server/Cargo.toml | 3 +++ crates/ra_mbe/Cargo.toml | 4 +++- crates/ra_parser/Cargo.toml | 3 +++ crates/ra_prof/Cargo.toml | 3 +++ crates/ra_project_model/Cargo.toml | 3 +++ crates/ra_syntax/Cargo.toml | 3 +++ crates/ra_text_edit/Cargo.toml | 3 +++ crates/ra_tt/Cargo.toml | 3 +++ crates/ra_vfs_glob/Cargo.toml | 3 +++ crates/test_utils/Cargo.toml | 3 +++ 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" name = "ra_arena" version = "0.1.0" authors = ["rust-analyzer developers"] + +[lib] +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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] format-buf = "1.0.0" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] log = "0.4.5" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] rustc-hash = "1.0.1" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] salsa = "0.13.0" 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" authors = ["rust-analyzer developers"] publish = false +[lib] +doctest = false + [dependencies] itertools = "0.8.0" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] arrayvec = "0.5.1" 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 { /// /// For example the type of `bar` here: /// - /// ```rust + /// ``` /// fn foo() -> i32 { 1 } /// let bar = foo; // bar: fn() -> i32 {foo} /// ``` @@ -89,7 +89,7 @@ pub enum TypeCtor { /// /// For example the type of `bar` here: /// - /// ```rust + /// ``` /// fn foo() -> i32 { 1 } /// let bar: fn() -> i32 = foo; /// ``` 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] log = "0.4.5" 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 /// crate::foo!(); /// ``` /// - /// Well, this code compiles, bacause the plain path `foo` in `use` is searched + /// Well, this code compiles, because the plain path `foo` in `use` is searched /// in the legacy textual scope only. /// ```rust /// 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] log = "0.4.5" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [features] wasm = [] 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] threadpool = "1.7.1" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] ra_syntax = { path = "../ra_syntax" } ra_parser = { path = "../ra_parser" } @@ -14,4 +17,3 @@ log = "0.4.5" [dev-dependencies] test_utils = { path = "../test_utils" } - 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" authors = ["rust-analyzer developers"] publish = false +[lib] +doctest = false + [dependencies] 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" authors = ["rust-analyzer developers"] publish = false +[lib] +doctest = false + [dependencies] once_cell = "1.0.1" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] log = "0.4.5" 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" description = "Comment and whitespace preserving parser for the Rust langauge" repository = "https://github.com/rust-analyzer/rust-analyzer" +[lib] +doctest = false + [dependencies] itertools = "0.8.0" 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" authors = ["rust-analyzer developers"] publish = false +[lib] +doctest = false + [dependencies] text_unit = "0.1.6" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] # ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here # 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] ra_vfs = "0.5.0" 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" version = "0.1.0" authors = ["rust-analyzer developers"] +[lib] +doctest = false + [dependencies] difference = "2.0.0" 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 @@ //! See //! for details, but the TL;DR is that you write your test as //! -//! ```rust,no_run +//! ``` //! #[test] //! fn test_foo() { //! covers!(test_foo); @@ -13,7 +13,7 @@ //! //! and in the code under test you write //! -//! ```rust,no_run +//! ``` //! # use test_utils::tested_by; //! # fn some_condition() -> bool { true } //! fn foo() { -- cgit v1.2.3