diff options
author | Christopher Chambers <chris.chambers@peanutcode.com> | 2014-12-31 16:25:15 -0600 |
---|---|---|
committer | Christopher Chambers <chris.chambers@peanutcode.com> | 2014-12-31 16:43:04 -0600 |
commit | fc0a9ab26a32344308d92407ec28ef43d155dc85 (patch) | |
tree | 192d0f36ccfa39ec0ba6c90bd624181bc66331d7 /tests/headers/func_with_array_arg.h | |
parent | 7fd76345505adde2eee8d63a92190f38d2a7c792 (diff) |
Adds Default impls for generated composites.
gen.rs
- Structs and unions now emit an implementation of the Default trait
using std::mem::zeroed to create a zeroed instance.
tests/support.rs
- AST comparisons are now done on the pretty-printed version of the
ASTs. Differences in AttrIds and some identifiers (generated with
gensym to ensure uniqueness) made it unreliable to compare the ASTs
directly. This way should work, even if it doesn't score many points
for style.
tests/*
- Updated to use Default::default() where appropriate.
- Eliminated a few warnings.
Diffstat (limited to 'tests/headers/func_with_array_arg.h')
0 files changed, 0 insertions, 0 deletions