Parse more repr options

This commit is contained in:
Lukas Wirth 2022-09-20 17:12:27 +02:00
parent 6d0d051628
commit 9f233cd5d2
5 changed files with 74 additions and 19 deletions

View file

@ -479,7 +479,6 @@ pub enum DefWithBodyId {
impl_from!(FunctionId, ConstId, StaticId for DefWithBodyId);
// FIXME: Rename EnumVariantId to VariantId so that the macro above can be used
impl From<EnumVariantId> for DefWithBodyId {
fn from(id: EnumVariantId) -> Self {
DefWithBodyId::VariantId(id)