mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +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 {
|
pub fn can_debug(&self) -> bool {
|
||||||
matches!(
|
match self.kind {
|
||||||
&self.kind,
|
RunnableKind::DocTest { .. } => false,
|
||||||
RunnableKind::TestMod { .. }
|
RunnableKind::TestMod { .. }
|
||||||
| RunnableKind::Test { .. }
|
| RunnableKind::Test { .. }
|
||||||
| RunnableKind::Bench { .. }
|
| RunnableKind::Bench { .. }
|
||||||
| RunnableKind::Bin
|
| RunnableKind::Bin => true,
|
||||||
)
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn title(&self) -> String {
|
pub fn title(&self) -> String {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue