Skip to content

Commit 3bbc2e9

Browse files
committed
add doctest runnables on struct #6356
Signed-off-by: Benjamin Coenen <[email protected]>
1 parent 94b2330 commit 3bbc2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide/src/runnables.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ const RUSTDOC_FENCE: &str = "```";
253253
const RUSTDOC_CODE_BLOCK_ATTRIBUTES_RUNNABLE: &[&str] =
254254
&["", "rust", "should_panic", "edition2015", "edition2018"];
255255

256-
fn has_runnable_doc_test<T: DocCommentsOwner>(def: &T) -> bool {
256+
fn has_runnable_doc_test(def: &dyn DocCommentsOwner) -> bool {
257257
def.doc_comment_text().map_or(false, |comments_text| {
258258
let mut in_code_block = false;
259259

0 commit comments

Comments
 (0)