1
Fork 0

Remove unused match pattern for primitive types

This commit is contained in:
Guillaume Gomez 2023-01-04 21:54:32 +01:00
parent f69fee4fea
commit c9ebd73416

View file

@ -252,7 +252,7 @@ pub(crate) fn from_item_id_with_name(item_id: ItemId, tcx: TyCtxt<'_>, name: Opt
ItemId::Auto { for_, trait_ } => {
Id(format!("a:{}-{}", DisplayDefId(trait_, tcx, None), DisplayDefId(for_, tcx, name)))
}
ItemId::Primitive(ty, krate) => Id(format!("p:{}:{}", krate.as_u32(), ty.as_sym())),
ItemId::Primitive(_, _) => unreachable!(),
}
}