Add Type::Void variant
Not currently usable as a function argument or explicit return value,
but will be required when we introduce Result for the case of fallible
void functions, whose return type will be Result<()>.
diff --git a/gen/write.rs b/gen/write.rs
index f74fb74..3cd3683 100644
--- a/gen/write.rs
+++ b/gen/write.rs
@@ -472,6 +472,7 @@
Type::Str(_) => {
write!(out, "::rust::Str");
}
+ Type::Void(_) => unreachable!(),
}
}
@@ -480,6 +481,7 @@
match ty {
Type::Ident(_) | Type::RustBox(_) | Type::UniquePtr(_) | Type::Str(_) => write!(out, " "),
Type::Ref(_) => {}
+ Type::Void(_) => unreachable!(),
}
}