Closed farcaller closed 8 years ago
Quick note: I'm pretty sure the problem is in this method: https://github.com/hackndev/zinc/blob/b46b4305d4f974eeedc7d428df3dc57b32c88114/ioreg/src/builder/register.rs#L151 It spits out:
#[doc = "`0x0`. no documentation"]
Input() = 0,
but it should rather be:
#[doc = "`0x0`. no documentation"]
Input = 0,
I still have to figure out how to fix that...
Changing line 166 to
data: P(ast::VariantData::Unit(ast::DUMMY_NODE_ID)),
seems to help. Pull request follows.
Tests pass on https://github.com/hackndev/zinc/pull/350 which buids on this
This fixes a few things broken for #347 apart from one:
breaks ioreg with
error: empty tuple structs and enum variants are not allowed, use unit structs and enum variants instead
.