diff options
author | Benjamin Coenen <[email protected]> | 2020-10-27 13:11:27 +0000 |
---|---|---|
committer | Benjamin Coenen <[email protected]> | 2020-10-27 13:11:27 +0000 |
commit | 3bbc2e95e43e72612a1abbd3d8916b9761686aab (patch) | |
tree | e1a37cd8f4a900bcf87dd36c1823c7ab179e32ef | |
parent | 94b2330f55af69d3cada685a9beff0236c9d92ee (diff) |
add doctest runnables on struct #6356
Signed-off-by: Benjamin Coenen <[email protected]>
-rw-r--r-- | crates/ide/src/runnables.rs | 2 |
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 = "```"; | |||
253 | const RUSTDOC_CODE_BLOCK_ATTRIBUTES_RUNNABLE: &[&str] = | 253 | const RUSTDOC_CODE_BLOCK_ATTRIBUTES_RUNNABLE: &[&str] = |
254 | &["", "rust", "should_panic", "edition2015", "edition2018"]; | 254 | &["", "rust", "should_panic", "edition2015", "edition2018"]; |
255 | 255 | ||
256 | fn has_runnable_doc_test<T: DocCommentsOwner>(def: &T) -> bool { | 256 | fn 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 | ||