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/test_utils/Cargo.toml | 3 +++ crates/test_utils/src/marks.rs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/test_utils') 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