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_hir/Cargo.toml | 3 +++ crates/ra_hir/src/ty.rs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir') 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; /// ``` -- cgit v1.2.3