c2rust-transpile 0.12.0

C2Rust transpiler implementation
Build #180563 2019-08-23T00:36:14.490742+00:00
# rustc version
rustc 1.39.0-nightly (bea0372a1 2019-08-20)
# docs.rs version
cratesfyi 0.6.0 (f01dedd 2019-07-30)

# build log
Updating crates.io index
Fresh unicode-xid v0.1.0
Fresh cc v1.0.40
Fresh autocfg v0.1.6
Fresh version_check v0.1.5
Fresh glob v0.3.0
Compiling ucd-trie v0.1.2
Compiling yaml-rust v0.3.5
Compiling winapi v0.3.7
Running `rustc --crate-name ucd_trie /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/ucd-trie-0.1.2/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=cfe70913533657a5 -C extra-filename=-cfe70913533657a5 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Running `rustc --crate-name yaml_rust /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/yaml-rust-0.3.5/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=43c8e6668ee07339 -C extra-filename=-43c8e6668ee07339 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Fresh termcolor v1.0.5
Running `rustc --crate-name build_script_build /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/winapi-0.3.7/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="consoleapi"' --cfg 'feature="errhandlingapi"' --cfg 'feature="fileapi"' --cfg 'feature="libloaderapi"' --cfg 'feature="minwinbase"' --cfg 'feature="minwindef"' --cfg 'feature="ntsecapi"' --cfg 'feature="processenv"' --cfg 'feature="profileapi"' --cfg 'feature="std"' --cfg 'feature="utilapiset"' --cfg 'feature="winbase"' --cfg 'feature="wincon"' --cfg 'feature="windef"' --cfg 'feature="winerror"' --cfg 'feature="winnls"' --cfg 'feature="winnt"' --cfg 'feature="winuser"' -C metadata=94b839458aad6c24 -C extra-filename=-94b839458aad6c24 --out-dir /home/cratesfyi/cratesfyi/debug/build/winapi-94b839458aad6c24 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Compiling bindgen v0.49.2
Running `rustc --crate-name build_script_build /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.49.2/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="env_logger"' --cfg 'feature="log"' --cfg 'feature="logging"' -C metadata=1630935e32f6304b -C extra-filename=-1630935e32f6304b --out-dir /home/cratesfyi/cratesfyi/debug/build/bindgen-1630935e32f6304b -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Compiling maplit v1.0.1
Running `rustc --crate-name maplit /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/maplit-1.0.1/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=ef403dd50bf526ec -C extra-filename=-ef403dd50bf526ec --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Fresh peeking_take_while v0.1.2
Fresh unicode-xid v0.2.0
Fresh shlex v0.1.1
Fresh approx v0.1.1
Fresh rgb v0.8.14
Fresh lazy_static v1.3.0
Fresh cfg-if v0.1.9
Fresh itoa v0.4.4
Fresh unicode-segmentation v1.3.0
Running `rustc --crate-name ucd_trie /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/ucd-trie-0.1.2/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=886b6d6da373f737 -C extra-filename=-886b6d6da373f737 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Fresh unicode-width v0.1.6
Fresh rustc-demangle v0.1.16
Fresh regex-syntax v0.6.11
Fresh same-file v1.0.5
Fresh half v1.3.0
Fresh ansi_term v0.11.0
Fresh either v1.5.2
Fresh quick-error v1.2.2
Fresh strsim v0.8.0
Fresh vec_map v0.8.1
Checking pathdiff v0.1.0
Running `rustc --crate-name pathdiff /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/pathdiff-0.1.0/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=4312975c850a8a4c -C extra-filename=-4312975c850a8a4c --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Fresh dtoa v0.4.4
Fresh smallvec v0.6.10
Checking strum v0.15.0
Running `rustc --crate-name strum /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/strum-0.15.0/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=d2d3c6356f98fff2 -C extra-filename=-d2d3c6356f98fff2 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Checking c2rust-ast-builder v0.11.0
Running `rustc --crate-name c2rust_ast_builder /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=bef6d541cc3d0017 -C extra-filename=-bef6d541cc3d0017 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Fresh cmake v0.1.41
Fresh humantime v1.2.0
Fresh thread_local v0.3.6
Fresh heck v0.3.1
Checking pest v2.1.1
Running `rustc --crate-name pest /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/pest-2.1.1/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=3d91f48dad0e2099 -C extra-filename=-3d91f48dad0e2099 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern ucd_trie=/home/cratesfyi/cratesfyi/debug/deps/libucd_trie-886b6d6da373f737.rmeta --cap-lints allow`
error[E0433]: failed to resolve: use of undeclared type or module `Guard`
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:966:35
|
966 |         let guard = guard.map(|g| Guard::If(g.make(&self)));
|                                   ^^^^^ use of undeclared type or module `Guard`

error[E0422]: cannot find struct, variant or union type `Variant_` in this scope
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:1655:19
|
1655 |             node: Variant_ {
|                   ^^^^^^^^ help: a struct with a similar name exists: `Variant`

error[E0422]: cannot find struct, variant or union type `Variant_` in this scope
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:1677:19
|
1677 |             node: Variant_ {
|                   ^^^^^^^^ help: a struct with a similar name exists: `Variant`

error[E0422]: cannot find struct, variant or union type `Mac_` in this scope
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:2188:19
|
2188 |             node: Mac_ {
|                   ^^^^ help: a struct with a similar name exists: `Mac`

Fresh textwrap v0.11.0
Fresh walkdir v2.2.9
Fresh itertools v0.8.0
Running `rustc --crate-name pest /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/pest-2.1.1/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=1cd4a905f259b138 -C extra-filename=-1cd4a905f259b138 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern ucd_trie=/home/cratesfyi/cratesfyi/debug/deps/libucd_trie-cfe70913533657a5.rlib --cap-lints allow`
error[E0599]: no function or associated item named `with_empty_ctxt` found for type `syntax::ast::Ident` in the current scope
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:34:16
|
34 |         Ident::with_empty_ctxt(self.into_symbol())
|                ^^^^^^^^^^^^^^^ function or associated item not found in `syntax::ast::Ident`

error[E0063]: missing field `id` in initializer of `syntax::ast::Field`
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:937:9
|
937 |         Field {
|         ^^^^^ missing `id`

error[E0063]: missing field `id` in initializer of `syntax::ast::Arm`
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:968:9
|
968 |         Arm {
|         ^^^ missing `id`

error: no variant `IfLet` in enum `syntax::ast::ExprKind`
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:1067:49
|
1067 |                 ExprKind::If { .. } | ExprKind::IfLet { .. } | ExprKind::Block(_, None) => e,
|                                                 ^^^^^ variant not found in `syntax::ast::ExprKind`

error[E0061]: this function takes 1 parameter but 2 parameters were supplied
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:1161:19
|
1161 |             node: PatKind::Tuple(pats, None),
|                   ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter

error[E0599]: no variant or associated item named `Ty` found for type `syntax::ast::ItemKind` in the current scope
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:1608:30
|
1608 |         let kind = ItemKind::Ty(ty, self.generics);
|                              ^^ variant or associated item not found in `syntax::ast::ItemKind`

error[E0308]: mismatched types
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:1654:9
|
1649 |       pub fn variant<I>(self, name: I, dat: VariantData) -> Variant
|                                                             ------- expected `syntax::ast::Variant` because of return type
...
1654 | /         Spanned {
1655 | |             node: Variant_ {
1656 | |                 ident: name,
1657 | |                 attrs: self.attrs,
...    |
1662 | |             span: self.span,
1663 | |         }
| |_________^ expected struct `syntax::ast::Variant`, found struct `syntax::source_map::Spanned`
|
= note: expected type `syntax::ast::Variant`
found type `syntax::source_map::Spanned<_>`

error[E0308]: mismatched types
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:1676:9
|
1666 |       pub fn unit_variant<I, E>(self, name: I, disc: Option<E>) -> Variant
|                                                                    ------- expected `syntax::ast::Variant` because of return type
...
1676 | /         Spanned {
1677 | |             node: Variant_ {
1678 | |                 ident: name,
1679 | |                 attrs: self.attrs,
...    |
1684 | |             span: self.span,
1685 | |         }
| |_________^ expected struct `syntax::ast::Variant`, found struct `syntax::source_map::Spanned`
|
= note: expected type `syntax::ast::Variant`
found type `syntax::source_map::Spanned<_>`

error[E0063]: missing field `span` in initializer of `syntax::ast::Arg`
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:2082:9
|
2082 |         Arg {
|         ^^^ missing `span`

error[E0061]: this function takes 1 parameter but 3 parameters were supplied
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:2140:24
|
2140 |         let mut attr = mk_attr_inner(DUMMY_SP, AttrId(0), meta_item);
|                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter

error[E0308]: mismatched types
--> /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/builder.rs:2187:9
|
2180 |       pub fn mac<Pa, Ts>(self, path: Pa, tts: Ts, delim: MacDelimiter) -> Mac
|                                                                           --- expected `syntax::ast::Mac` because of return type
...
2187 | /         Spanned {
2188 | |             node: Mac_ {
2189 | |                 path: path,
2190 | |                 delim: delim,
...    |
2193 | |             span: self.span,
2194 | |         }
| |_________^ expected struct `syntax::ast::Mac`, found struct `syntax::source_map::Spanned`
|
= note: expected type `syntax::ast::Mac`
found type `syntax::source_map::Spanned<_>`

error: aborting due to 15 previous errors

Some errors have detailed explanations: E0061, E0063, E0308, E0422, E0433, E0599.
For more information about an error, try `rustc --explain E0061`.
error: Could not compile `c2rust-ast-builder`.

Caused by:
process didn't exit successfully: `rustc --crate-name c2rust_ast_builder /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/c2rust-ast-builder-0.11.0/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=bef6d541cc3d0017 -C extra-filename=-bef6d541cc3d0017 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
thread 'main' panicked at 'ErrorMessage {
msg: "build failed",
}', src/bin/cratesfyi.rs:161:13
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.