mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
be explicit about what we *can't* debug
This commit is contained in:
parent
fa6f78c95b
commit
96d85a9efb
1 changed files with 6 additions and 6 deletions
|
@ -75,13 +75,13 @@ impl Runnable {
|
|||
}
|
||||
|
||||
pub fn can_debug(&self) -> bool {
|
||||
matches!(
|
||||
&self.kind,
|
||||
match self.kind {
|
||||
RunnableKind::DocTest { .. } => false,
|
||||
RunnableKind::TestMod { .. }
|
||||
| RunnableKind::Test { .. }
|
||||
| RunnableKind::Bench { .. }
|
||||
| RunnableKind::Bin
|
||||
)
|
||||
| RunnableKind::Test { .. }
|
||||
| RunnableKind::Bench { .. }
|
||||
| RunnableKind::Bin => true,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn title(&self) -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue