diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -85,7 +85,8 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream { let mut type_converter = TypeConverter { collections: method_attrs.collections, - ..TypeConverter::default() + assoc_type_conversions: HashMap::new(), + trait_ident: original_trait.ident.clone(), }; for item in &original_trait.items { @@ -158,8 +159,8 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream { MethodError::Transform(TransformError::QualifiedAssociatedType) => { return abort!(span, "dynamize does not support qualified associated types") } - MethodError::Transform(TransformError::QualifiedSelfAssociatedType) => { - return abort!(span, "dynamize does not support associated types of a qualified Self") + MethodError::Transform(TransformError::SelfQualifiedAsOtherTrait) => { + return abort!(span, "dynamize does not support Self qualified as another trait") } MethodError::UnconvertedAssocType => { return abort!(span, "dynamize does not support associated types here") |