Emit test name in Run test runnables if it comes from a macro expansion

This commit is contained in:
Lukas Wirth 2021-07-01 20:40:31 +02:00
parent dd69d4a97c
commit f1b3446844
6 changed files with 363 additions and 136 deletions

View file

@ -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),