From 7e2f4b30db8a0d734b3a1fc9f6ad77b2adc9aa2a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 17 Nov 2019 18:35:05 +0300 Subject: [PATCH] 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 9328c1f50a9..d287dbb7352 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 125c6222d53..434e6656ccc 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 d08c5ceac32..35626d77d2d 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 b28affc3a3d..dd5ff88b0de 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 bf1f7920c58..4ec09b6d91b 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 ba7b3ceac70..9969d474637 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 20f6e3649b2..42ddfecc9a4 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 a5413518806..b7f50b714f7 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 21262be7959..7e65f4c1d54 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 c9ccb90239f..8f426b09775 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 8f29bf7d9f0..c60152a7998 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 fa353b5dd8f..15346f38812 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 743f6a60a1b..72dbe06dcc7 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 b02e45ee39d..a3fc01f634b 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 b110e2bc6d3..0da581fd53e 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 751bcdeb8a0..382e6219a20 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 b31c9590342..69edc3c66b4 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 9c0e856e821..45a18a73f7a 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 b4002600411..8573c521a2e 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 3fcc7f08550..b8dceb92a4e 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 83749675f6b..094d6d6f440 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 0be9c3665eb..a71366cc4a5 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 1c268b49cd7..fe18139477e 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() {