mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Emit test name in Run test runnables if it comes from a macro expansion
This commit is contained in:
parent
dd69d4a97c
commit
f1b3446844
6 changed files with 363 additions and 136 deletions
|
@ -1634,6 +1634,16 @@ impl HasVisibility for AssocItem {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<AssocItem> for ModuleDef {
|
||||
fn from(assoc: AssocItem) -> Self {
|
||||
match assoc {
|
||||
AssocItem::Function(it) => ModuleDef::Function(it),
|
||||
AssocItem::Const(it) => ModuleDef::Const(it),
|
||||
AssocItem::TypeAlias(it) => ModuleDef::TypeAlias(it),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)]
|
||||
pub enum GenericDef {
|
||||
Function(Function),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue