aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Coenen <[email protected]>2020-10-27 13:11:27 +0000
committerBenjamin Coenen <[email protected]>2020-10-27 13:11:27 +0000
commit3bbc2e95e43e72612a1abbd3d8916b9761686aab (patch)
treee1a37cd8f4a900bcf87dd36c1823c7ab179e32ef
parent94b2330f55af69d3cada685a9beff0236c9d92ee (diff)
add doctest runnables on struct #6356
Signed-off-by: Benjamin Coenen <[email protected]>
-rw-r--r--crates/ide/src/runnables.rs2
1 files changed, 1 insertions, 1 deletions
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 = "```";
253const RUSTDOC_CODE_BLOCK_ATTRIBUTES_RUNNABLE: &[&str] = 253const RUSTDOC_CODE_BLOCK_ATTRIBUTES_RUNNABLE: &[&str] =
254 &["", "rust", "should_panic", "edition2015", "edition2018"]; 254 &["", "rust", "should_panic", "edition2015", "edition2018"];
255 255
256fn has_runnable_doc_test<T: DocCommentsOwner>(def: &T) -> bool { 256fn has_runnable_doc_test(def: &dyn DocCommentsOwner) -> bool {
257 def.doc_comment_text().map_or(false, |comments_text| { 257 def.doc_comment_text().map_or(false, |comments_text| {
258 let mut in_code_block = false; 258 let mut in_code_block = false;
259 259