From 3bbc2e95e43e72612a1abbd3d8916b9761686aab Mon Sep 17 00:00:00 2001
From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
Date: Tue, 27 Oct 2020 14:11:27 +0100
Subject: add doctest runnables on struct #6356

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
---
 crates/ide/src/runnables.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'crates')

diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs
index 876ee4c5e..2bd0e86e5 100644
--- a/crates/ide/src/runnables.rs
+++ b/crates/ide/src/runnables.rs
@@ -253,7 +253,7 @@ const RUSTDOC_FENCE: &str = "```";
 const RUSTDOC_CODE_BLOCK_ATTRIBUTES_RUNNABLE: &[&str] =
     &["", "rust", "should_panic", "edition2015", "edition2018"];
 
-fn has_runnable_doc_test<T: DocCommentsOwner>(def: &T) -> bool {
+fn has_runnable_doc_test(def: &dyn DocCommentsOwner) -> bool {
     def.doc_comment_text().map_or(false, |comments_text| {
         let mut in_code_block = false;
 
-- 
cgit v1.2.3