aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 10:53:43 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 10:53:43 +0100
commit8178b4671b03a9c7d4dbe6c4ce66b9cb737c4e2d (patch)
tree7ffa56d4b74acacc35f6de6b9eea141643e51ce8 /src/lib.rs
parentad16a3e0ff064886a807c3c03610588f95943e2d (diff)
rename AssocTypeError variants
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0b50546..fbd32ec 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -71,8 +71,8 @@ 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((_, AssocTypeError::NoIntoBound)) => continue,
- Err((span, AssocTypeError::AssocTypeInBound)) => {
+ Err((_, AssocTypeError::NoTraitBound)) => continue,
+ Err((span, AssocTypeError::TraitBoundContainsAssocType)) => {
return abort!(span, "dynamize does not support associated types here")
}
Err((span, AssocTypeError::GenericAssociatedType)) => {