aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 10:50:14 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 10:51:24 +0100
commitad16a3e0ff064886a807c3c03610588f95943e2d (patch)
tree55606e868fa3c80350b2f1b0d56c30a7ca9ea49a /src/lib.rs
parentfa9d689238064784e5ad220ba9e0c95fad71fe66 (diff)
rename AssocTypeParseError to AssocTypeError
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index caaf774..0b50546 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -37,7 +37,7 @@ use syn::Visibility;
use syn_utils::TypeOrPath;
use crate::parse_assoc_type::parse_assoc_type;
-use crate::parse_assoc_type::AssocTypeParseError;
+use crate::parse_assoc_type::AssocTypeError;
use crate::parse_trait_sig::parse_trait_signature;
use crate::parse_trait_sig::MethodParseError;
use crate::parse_trait_sig::SignatureChanges;
@@ -71,11 +71,11 @@ pub fn dynamize(_attr: TokenStream, input: TokenStream) -> TokenStream {
for item in &original_trait.items {
if let TraitItem::Type(assoc_type) = item {
match parse_assoc_type(assoc_type) {
- Err((_, AssocTypeParseError::NoIntoBound)) => continue,
- Err((span, AssocTypeParseError::AssocTypeInBound)) => {
+ Err((_, AssocTypeError::NoIntoBound)) => continue,
+ Err((span, AssocTypeError::AssocTypeInBound)) => {
return abort!(span, "dynamize does not support associated types here")
}
- Err((span, AssocTypeParseError::GenericAssociatedType)) => {
+ Err((span, AssocTypeError::GenericAssociatedType)) => {
return abort!(
span,
"dynamize does not (yet?) support generic associated types"