Skip to content

Commit

Permalink
Bump dep on syntex_syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 3, 2015
1 parent ec5cda4 commit 68c6cd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ Automated tests of FFI bindings.
"""

[dependencies]
syntex_syntax = "0.13.0"
syntex_syntax = "0.19.1"
gcc = "0.3.14"
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,15 @@ impl<'a> Generator<'a> {
self.test_sign(ty, &c);
}

fn test_struct(&mut self, ty: &str, s: &ast::StructDef) {
fn test_struct(&mut self, ty: &str, s: &ast::VariantData) {
let cty = self.rust_ty_to_c_ty(ty);
self.test_size_align(ty, &cty);

self.tests.push(format!("field_offset_size_{}", ty));
t!(writeln!(self.rust, r#"
fn field_offset_size_{ty}() {{
"#, ty = ty));
for field in s.fields.iter() {
for field in s.fields() {
let name = match field.node.kind {
ast::NamedField(name, ast::Public) => name,
ast::NamedField(_, ast::Inherited) => continue,
Expand Down

0 comments on commit 68c6cd6

Please sign in to comment.