aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index fc559bc..f8fdde8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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")