diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -44,6 +44,7 @@ use crate::parse_trait_sig::SignatureChanges; use crate::parse_trait_sig::TypeTransform; use crate::syn_utils::iter_path; use crate::syn_utils::trait_bounds; +use crate::transform::TransformError; use crate::transform::TypeConverter; mod parse_assoc_type; @@ -95,7 +96,7 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream { let mut signature = method.sig.clone(); match parse_trait_signature(&mut signature, &type_converter) { Err((_, MethodError::NonDispatchableMethod)) => continue, - Err((span, MethodError::AssocTypeWithoutDestType)) => { + Err((span, MethodError::Transform(TransformError::AssocTypeWithoutDestType))) => { return abort!( span, "associated type is either undefined or doesn't have a trait bound" @@ -107,7 +108,7 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream { "dynamize does not support associated types in parameter types" ) } - Err((span, MethodError::UnsupportedType)) => { + Err((span, MethodError::Transform(TransformError::UnsupportedType))) => { return abort!(span, "dynamize does not know how to convert this type") } Err((span, MethodError::UnconvertedAssocType)) => { |