Skip to content

Commit 96d85a9

Browse files
committed
be explicit about what we *can't* debug
1 parent fa6f78c commit 96d85a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/ide/src/runnables.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ impl Runnable {
7575
}
7676

7777
pub fn can_debug(&self) -> bool {
78-
matches!(
79-
&self.kind,
78+
match self.kind {
79+
RunnableKind::DocTest { .. } => false,
8080
RunnableKind::TestMod { .. }
81-
| RunnableKind::Test { .. }
82-
| RunnableKind::Bench { .. }
83-
| RunnableKind::Bin
84-
)
81+
| RunnableKind::Test { .. }
82+
| RunnableKind::Bench { .. }
83+
| RunnableKind::Bin => true,
84+
}
8585
}
8686

8787
pub fn title(&self) -> String {

0 commit comments

Comments
 (0)