Emit test name in Run test runnables if it comes from a macro expansion
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user