| 200 | items, |
| 201 | } = sane; |
| 202 | |
| 203 | let (impl_generics, impl_where_clause) = impl_generics.into_pair(); |
| 204 | |
| 205 | let macro_ident = { |
| 206 | let enum_ident = find_enum_ident(&self_ty) |
| 207 | .ok_or_else(|| Error::new(self_ty.span(), "Could not find main ident in this type."))?; |
| 208 | |
| 209 | delegate_macro_ident(enum_ident) |
| 210 | }; |
| 211 | |
| 212 | let items = items |
| 213 | .into_inner() |
| 214 | .into_iter() |
| 215 | .map(|item| match item { |
| 216 | SaneItem::AssocType(ty) => Ok(ty.to_token_stream()), |
| 217 | SaneItem::AssocConst(cn) => Ok(cn.to_token_stream()), |
| 218 | SaneItem::FnWithExplicitImpl(explicit) => Ok(explicit.to_token_stream()), |
nothing calls this directly
no outgoing calls
no test coverage detected