[INFO] fetching crate crustacean 0.3.1...
[INFO] checking crustacean-0.3.1 against master#30f74ff0dc4d66debc8b50724c446f817e5f75f4 for pr-121848-1
[INFO] extracting crate crustacean 0.3.1 into /workspace/builds/worker-1-tc1/source
[INFO] validating manifest of crates.io crate crustacean 0.3.1 on toolchain 30f74ff0dc4d66debc8b50724c446f817e5f75f4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate crustacean 0.3.1
[INFO] finished tweaking crates.io crate crustacean 0.3.1
[INFO] tweaked toml for crates.io crate crustacean 0.3.1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded term v0.5.2
[INFO] [stderr]   Downloaded clang v0.14.1
[INFO] [stderr]   Downloaded clang-sys v0.13.0
[INFO] [stderr]   Downloaded clang-sys v0.11.1
[INFO] [stderr]   Downloaded clippy v0.0.302
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7c558aba19c017966035c5690f2c3a137b2ec20a305969557f3fda66266a3a8a
[INFO] running `Command { std: "docker" "start" "-a" "7c558aba19c017966035c5690f2c3a137b2ec20a305969557f3fda66266a3a8a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7c558aba19c017966035c5690f2c3a137b2ec20a305969557f3fda66266a3a8a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7c558aba19c017966035c5690f2c3a137b2ec20a305969557f3fda66266a3a8a", kill_on_drop: false }`
[INFO] [stdout] 7c558aba19c017966035c5690f2c3a137b2ec20a305969557f3fda66266a3a8a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+30f74ff0dc4d66debc8b50724c446f817e5f75f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] defd2f69fa60cb1bcda49635ba552a5eae4c43cc3554a19ba3b6697764a53eff
[INFO] running `Command { std: "docker" "start" "-a" "defd2f69fa60cb1bcda49635ba552a5eae4c43cc3554a19ba3b6697764a53eff", kill_on_drop: false }`
[INFO] [stderr]    Compiling glob v0.2.11
[INFO] [stderr]     Checking bitflags v0.7.0
[INFO] [stderr]     Checking lazy_static v0.2.11
[INFO] [stderr]    Compiling clang-sys v0.13.0
[INFO] [stderr]    Compiling clang-sys v0.11.1
[INFO] [stderr]     Checking clang v0.14.1
[INFO] [stderr]     Checking crustacean v0.3.1 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0463]: can't find crate for `syntax`
[INFO] [stdout]   --> src/lib.rs:28:1
[INFO] [stdout]    |
[INFO] [stdout] 28 | extern crate syntax;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^ can't find crate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `super::c`, `super::super::GeneratorOptions`
[INFO] [stdout]   --> src/ast/rust.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use super::c;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 22 | use super::super::{GeneratorOptions};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0463]: can't find crate for `syntax`
[INFO] [stdout]   --> src/lib.rs:28:1
[INFO] [stdout]    |
[INFO] [stdout] 28 | extern crate syntax;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^ can't find crate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `super::c`, `super::super::GeneratorOptions`
[INFO] [stdout]   --> src/ast/rust.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use super::c;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 22 | use super::super::{GeneratorOptions};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:34:21
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |                     ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl<Item> IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:35:61
[INFO] [stdout]    |
[INFO] [stdout] 35 |     fn into_rust(self, options: &GeneratorOptions) -> Vec<P<Item>> {
[INFO] [stdout]    |                                                             ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl<Item> IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:79:15
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl IntoRust<StructField> for c::Field {
[INFO] [stdout]    |               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl<StructField> IntoRust<StructField> for c::Field {
[INFO] [stdout]    |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:80:55
[INFO] [stdout]    |
[INFO] [stdout] 80 |     fn into_rust(self, options: &GeneratorOptions) -> StructField {
[INFO] [stdout]    |                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:93:19
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |                   ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl<ImplItem> IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:94:59
[INFO] [stdout]    |
[INFO] [stdout] 94 |     fn into_rust(self, options: &GeneratorOptions) -> Vec<ImplItem> {
[INFO] [stdout]    |                                                           ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl<ImplItem> IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:117:15
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl IntoRust<ForeignItem> for c::Function {
[INFO] [stdout]     |               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl<ForeignItem> IntoRust<ForeignItem> for c::Function {
[INFO] [stdout]     |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:118:55
[INFO] [stdout]     |
[INFO] [stdout] 118 |     fn into_rust(self, options: &GeneratorOptions) -> ForeignItem {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:123:17
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl<FnDecl> IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:124:57
[INFO] [stdout]     |
[INFO] [stdout] 124 |     fn into_rust(self, options: &GeneratorOptions) -> P<FnDecl> {
[INFO] [stdout]     |                                                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl<FnDecl> IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl<Ty> IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:142:57
[INFO] [stdout]     |
[INFO] [stdout] 142 |     fn into_rust(self, options: &GeneratorOptions) -> P<Ty> {
[INFO] [stdout]     |                                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl<Ty> IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:147:15
[INFO] [stdout]     |
[INFO] [stdout] 147 | impl IntoRust<Arg> for c::Parameter {
[INFO] [stdout]     |               ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 147 | impl<Arg> IntoRust<Arg> for c::Parameter {
[INFO] [stdout]     |     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:148:55
[INFO] [stdout]     |
[INFO] [stdout] 148 |     fn into_rust(self, options: &GeneratorOptions) -> Arg {
[INFO] [stdout]     |                                                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:153:22
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:153:36
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:154:62
[INFO] [stdout]     |
[INFO] [stdout] 154 |     fn into_rust(self, options: &GeneratorOptions) -> (Vec<P<Item>>, Vec<P<Item>>) {
[INFO] [stdout]     |                                                              ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:154:76
[INFO] [stdout]     |
[INFO] [stdout] 154 |     fn into_rust(self, options: &GeneratorOptions) -> (Vec<P<Item>>, Vec<P<Item>>) {
[INFO] [stdout]     |                                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:172:30
[INFO] [stdout]     |
[INFO] [stdout] 172 |             let methods: Vec<ImplItem> = f.into_rust(options);
[INFO] [stdout]     |                              ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<ImplItem> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:182:17
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl<Ty> IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:183:57
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn into_rust(self, options: &GeneratorOptions) -> P<Ty> {
[INFO] [stdout]     |                                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl<Ty> IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:213:17
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl<Item> IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:214:57
[INFO] [stdout]     |
[INFO] [stdout] 214 |     fn into_rust(self, options: &GeneratorOptions) -> P<Item> {
[INFO] [stdout]     |                                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl<Item> IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:220:17
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl<Expr> IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:221:57
[INFO] [stdout]     |
[INFO] [stdout] 221 |     fn into_rust(self, options: &GeneratorOptions) -> P<Expr> {
[INFO] [stdout]     |                                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl<Expr> IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:33
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg<Ty>(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `PatKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:44
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                            ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:56
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:5
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |     ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pat` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:26
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                          ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:36
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:82
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                                                                                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:241:54
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>, Ty>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:241:72
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:247:40
[INFO] [stdout]     |
[INFO] [stdout] 247 | pub fn to_attribute(span: Span, value: MetaItem, doc: bool) -> Attribute {
[INFO] [stdout]     |                                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:247:64
[INFO] [stdout]     |
[INFO] [stdout] 247 | pub fn to_attribute(span: Span, value: MetaItem, doc: bool) -> Attribute {
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:248:5
[INFO] [stdout]     |
[INFO] [stdout] 248 |     Attribute {
[INFO] [stdout]     |     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:257:51
[INFO] [stdout]     |
[INFO] [stdout] 257 | pub fn to_attribute_doc(span: Span, doc: &str) -> Attribute {
[INFO] [stdout]     |                                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:266:6
[INFO] [stdout]     |
[INFO] [stdout] 266 | ) -> Attribute {
[INFO] [stdout]     |      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:274:40
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block<Stmt>(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:274:52
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                                                    ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block<Block>(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:275:17
[INFO] [stdout]     |
[INFO] [stdout] 275 |     let block = Block {
[INFO] [stdout]     |                 ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:277:13
[INFO] [stdout]     |
[INFO] [stdout] 277 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ExprKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:284:34
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |                                  ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:284:49
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr<Expr>(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |               ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:285:7
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |       ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:285:18
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:48
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:68
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of<Expr>(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:80
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                                                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of<Expr>(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:43
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:67
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                                                   ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:80
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                                                                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:296:60
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>, Expr>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:296:82
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>, Expr>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:300:40
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg<Expr>(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:300:52
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg<Expr>(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:304:39
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                                       ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:304:50
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path<Expr>(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LitKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:308:38
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                                      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:308:52
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit<Expr>(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:312:53
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub fn to_expr_lit_int(span: Span, value: u64) -> P<Expr> {
[INFO] [stdout]     |                                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub fn to_expr_lit_int<Expr>(span: Span, value: u64) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:31
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                               ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl<Arg>(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                  +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FunctionRetTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:45
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:81
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                                                                                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl<FnDecl>(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                  ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:317:7
[INFO] [stdout]     |
[INFO] [stdout] 317 |     P(FnDecl { inputs: inputs, output: output, variadic: variadic })
[INFO] [stdout]     |       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:320:67
[INFO] [stdout]     |
[INFO] [stdout] 320 | pub fn to_foreign_item<S: AsRef<str>>(span: Span, ident: S, node: ForeignItemKind) -> ForeignItem {
[INFO] [stdout]     |                                                                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:320:87
[INFO] [stdout]     |
[INFO] [stdout] 320 | pub fn to_foreign_item<S: AsRef<str>>(span: Span, ident: S, node: ForeignItemKind) -> ForeignItem {
[INFO] [stdout]     |                                                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:321:5
[INFO] [stdout]     |
[INFO] [stdout] 321 |     ForeignItem {
[INFO] [stdout]     |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:325:13
[INFO] [stdout]     |
[INFO] [stdout] 325 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:331:72
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                                                        ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>, FnDecl>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:331:84
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                                                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:335:45
[INFO] [stdout]     |
[INFO] [stdout] 335 | pub fn to_ident<S: AsRef<str>>(ident: S) -> Ident {
[INFO] [stdout]     |                                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:339:64
[INFO] [stdout]     |
[INFO] [stdout] 339 | pub fn to_impl_item<S: AsRef<str>>(span: Span, ident: S, node: ImplItemKind) -> ImplItem {
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:339:81
[INFO] [stdout]     |
[INFO] [stdout] 339 | pub fn to_impl_item<S: AsRef<str>>(span: Span, ident: S, node: ImplItemKind) -> ImplItem {
[INFO] [stdout]     |                                                                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 |     ImplItem {
[INFO] [stdout]     |     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:341:13
[INFO] [stdout]     |
[INFO] [stdout] 341 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:39
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:59
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                                           ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn to_impl_item_method<S: AsRef<str>, FnDecl>(
[INFO] [stdout]     |                                         ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:77
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                                                             ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn to_impl_item_method<S: AsRef<str>, Block>(
[INFO] [stdout]     |                                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:353:6
[INFO] [stdout]     |
[INFO] [stdout] 353 | ) -> ImplItem {
[INFO] [stdout]     |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MethodSig` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:359:15
[INFO] [stdout]     |
[INFO] [stdout] 359 |     let sig = MethodSig {
[INFO] [stdout]     |               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:370:33
[INFO] [stdout]     |
[INFO] [stdout] 370 |     span: Span, ident: S, node: ItemKind, attrs: Vec<Attribute>
[INFO] [stdout]     |                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:370:54
[INFO] [stdout]     |
[INFO] [stdout] 370 |     span: Span, ident: S, node: ItemKind, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                      ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub fn to_item<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                             +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:371:8
[INFO] [stdout]     |
[INFO] [stdout] 371 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub fn to_item<S: AsRef<str>, Item>(
[INFO] [stdout]     |                             ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:376:16
[INFO] [stdout]     |
[INFO] [stdout] 376 |     let item = Item {
[INFO] [stdout]     |                ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:379:13
[INFO] [stdout]     |
[INFO] [stdout] 379 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:387:69
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                                                     ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>, ImplItem>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                  ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:387:85
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                                                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:399:70
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                                                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                 ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:399:83
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                                                                   ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                 ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Mod` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:400:40
[INFO] [stdout]     |
[INFO] [stdout] 400 |     to_item(span, ident, ItemKind::Mod(Mod { inner: span, items: items }), vec![])
[INFO] [stdout]     |                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:404:39
[INFO] [stdout]     |
[INFO] [stdout] 404 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, StructField>(
[INFO] [stdout]     |                                    +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:404:64
[INFO] [stdout]     |
[INFO] [stdout] 404 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                                    +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:405:8
[INFO] [stdout]     |
[INFO] [stdout] 405 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, Item>(
[INFO] [stdout]     |                                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:406:44
[INFO] [stdout]     |
[INFO] [stdout] 406 |     let data = VariantData::Struct(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:411:39
[INFO] [stdout]     |
[INFO] [stdout] 411 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, StructField>(
[INFO] [stdout]     |                                          +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:411:64
[INFO] [stdout]     |
[INFO] [stdout] 411 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                                          +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:412:8
[INFO] [stdout]     |
[INFO] [stdout] 412 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, Item>(
[INFO] [stdout]     |                                          ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:413:43
[INFO] [stdout]     |
[INFO] [stdout] 413 |     let data = VariantData::Tuple(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:417:63
[INFO] [stdout]     |
[INFO] [stdout] 417 | pub fn to_meta_item<S: AsRef<str>>(span: Span, name: S, node: MetaItemKind) -> MetaItem {
[INFO] [stdout]     |                                                               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:417:80
[INFO] [stdout]     |
[INFO] [stdout] 417 | pub fn to_meta_item<S: AsRef<str>>(span: Span, name: S, node: MetaItemKind) -> MetaItem {
[INFO] [stdout]     |                                                                                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:418:5
[INFO] [stdout]     |
[INFO] [stdout] 418 |     MetaItem { name: Symbol::intern(name.as_ref()), node: node, span: span }
[INFO] [stdout]     |     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:421:76
[INFO] [stdout]     |
[INFO] [stdout] 421 | pub fn to_path<S: AsRef<str>>(span: Span, global: bool, segments: &[S]) -> Path {
[INFO] [stdout]     |                                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PathSegment` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:423:9
[INFO] [stdout]     |
[INFO] [stdout] 423 |         PathSegment { identifier: to_ident(s), parameters: PathParameters::none() }
[INFO] [stdout]     |         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:425:5
[INFO] [stdout]     |
[INFO] [stdout] 425 |     Path { span: span, global: global, segments: segments }
[INFO] [stdout]     |     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 15  + use c::Type::Path;
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:428:41
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option<Ty>(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                      ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:428:49
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AngleBracketedParameterData` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:430:16
[INFO] [stdout]     |
[INFO] [stdout] 430 |     let data = AngleBracketedParameterData {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:437:41
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr<Expr>(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:437:51
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                                                   ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:438:5
[INFO] [stdout]     |
[INFO] [stdout] 438 |     Stmt {
[INFO] [stdout]     |     ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:439:13
[INFO] [stdout]     |
[INFO] [stdout] 439 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:445:75
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                                                           ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>, Ty>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:445:83
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                                                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:446:5
[INFO] [stdout]     |
[INFO] [stdout] 446 |     StructField {
[INFO] [stdout]     |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:450:13
[INFO] [stdout]     |
[INFO] [stdout] 450 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TyKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:456:32
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |                                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:456:45
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |                                             ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty<Ty>(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |             ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:457:7
[INFO] [stdout]     |
[INFO] [stdout] 457 |     P(Ty { id: DUMMY_NODE_ID, node: node, span: span })
[INFO] [stdout]     |       ^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:457:16
[INFO] [stdout]     |
[INFO] [stdout] 457 |     P(Ty { id: DUMMY_NODE_ID, node: node, span: span })
[INFO] [stdout]     |                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:460:38
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array<Ty>(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:460:63
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                                                               ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array<Ty>(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:464:42
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                                          ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn<FnDecl>(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:464:56
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                                                        ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn<Ty>(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BareFnTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:465:15
[INFO] [stdout]     |
[INFO] [stdout] 465 |     let fn_ = BareFnTy { unsafety: Unsafety::Normal, abi: Abi::C, lifetimes: vec![], decl: decl };
[INFO] [stdout]     |               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:469:81
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub fn to_ty_path<S: AsRef<str>>(span: Span, global: bool, segments: &[S]) -> P<Ty> {
[INFO] [stdout]     |                                                                                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub fn to_ty_path<S: AsRef<str>, Ty>(span: Span, global: bool, segments: &[S]) -> P<Ty> {
[INFO] [stdout]     |                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:42
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:60
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                                            ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr<Ty>(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:70
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr<Ty>(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MutTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:474:29
[INFO] [stdout]     |
[INFO] [stdout] 474 |     to_ty(span, TyKind::Ptr(MutTy { ty: ty, mutbl: mutability }))
[INFO] [stdout]     |                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mod` in this scope
[INFO] [stdout]    --> src/lib.rs:213:42
[INFO] [stdout]     |
[INFO] [stdout] 213 |     pub fn generate(&mut self) -> Result<Mod, String> {
[INFO] [stdout]     |                                          ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 109 | impl<Mod> Generator {
[INFO] [stdout]     |     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Mod` in this scope
[INFO] [stdout]    --> src/lib.rs:247:12
[INFO] [stdout]     |
[INFO] [stdout] 247 |         Ok(Mod { inner: self.options.span, items: opaque })
[INFO] [stdout]     |            ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:311:84
[INFO] [stdout]     |
[INFO] [stdout] 311 | fn generate_typedefs(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                                                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 311 | fn generate_typedefs<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:324:81
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn generate_enums(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                                                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn generate_enums<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:338:77
[INFO] [stdout]     |
[INFO] [stdout] 338 |     options: &GeneratorOptions, tus: &[TranslationUnit], nested: &mut Vec<P<Item>>
[INFO] [stdout]     |                                                                             ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn generate_records<Item>(
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:339:12
[INFO] [stdout]     |
[INFO] [stdout] 339 | ) -> Vec<P<Item>> {
[INFO] [stdout]     |            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn generate_records<Item>(
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:359:88
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                                                                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                      ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/lib.rs:374:26
[INFO] [stdout]     |
[INFO] [stdout] 374 |         }).collect::<Vec<ForeignItem>>();
[INFO] [stdout]     |                          ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions<ForeignItem>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                      +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForeignMod` in this scope
[INFO] [stdout]    --> src/lib.rs:376:46
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let functions = ItemKind::ForeignMod(ForeignMod { abi: Abi::C, items: functions });
[INFO] [stdout]     |                                              ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:381:17
[INFO] [stdout]     |
[INFO] [stdout] 381 | fn is_ty(item: &Item) -> bool {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `clang` is imported redundantly
[INFO] [stdout]   --> src/ast/c.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 | use clang::{self, Entity, EntityKind, TypeKind};
[INFO] [stdout]    |             ^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/lib.rs:25:1
[INFO] [stdout]    |
[INFO] [stdout] 25 | extern crate clang;
[INFO] [stdout]    | ------------------- the item `clang` is already imported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:220:21
[INFO] [stdout]     |
[INFO] [stdout] 220 |         let clang = try!(Clang::new().map_err(|_| "called from multiple threads simultaneously"));
[INFO] [stdout]     |                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:225:22
[INFO] [stdout]     |
[INFO] [stdout] 225 |             tus.push(try!(index.parser(header).arguments(&arguments[..]).parse()));
[INFO] [stdout]     |                      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:34:21
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |                     ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl<Item> IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:35:61
[INFO] [stdout]    |
[INFO] [stdout] 35 |     fn into_rust(self, options: &GeneratorOptions) -> Vec<P<Item>> {
[INFO] [stdout]    |                                                             ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl<Item> IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:79:15
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl IntoRust<StructField> for c::Field {
[INFO] [stdout]    |               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl<StructField> IntoRust<StructField> for c::Field {
[INFO] [stdout]    |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:80:55
[INFO] [stdout]    |
[INFO] [stdout] 80 |     fn into_rust(self, options: &GeneratorOptions) -> StructField {
[INFO] [stdout]    |                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:93:19
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |                   ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl<ImplItem> IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:94:59
[INFO] [stdout]    |
[INFO] [stdout] 94 |     fn into_rust(self, options: &GeneratorOptions) -> Vec<ImplItem> {
[INFO] [stdout]    |                                                           ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl<ImplItem> IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:117:15
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl IntoRust<ForeignItem> for c::Function {
[INFO] [stdout]     |               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl<ForeignItem> IntoRust<ForeignItem> for c::Function {
[INFO] [stdout]     |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:118:55
[INFO] [stdout]     |
[INFO] [stdout] 118 |     fn into_rust(self, options: &GeneratorOptions) -> ForeignItem {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:123:17
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl<FnDecl> IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:124:57
[INFO] [stdout]     |
[INFO] [stdout] 124 |     fn into_rust(self, options: &GeneratorOptions) -> P<FnDecl> {
[INFO] [stdout]     |                                                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl<FnDecl> IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl<Ty> IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:142:57
[INFO] [stdout]     |
[INFO] [stdout] 142 |     fn into_rust(self, options: &GeneratorOptions) -> P<Ty> {
[INFO] [stdout]     |                                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl<Ty> IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:147:15
[INFO] [stdout]     |
[INFO] [stdout] 147 | impl IntoRust<Arg> for c::Parameter {
[INFO] [stdout]     |               ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 147 | impl<Arg> IntoRust<Arg> for c::Parameter {
[INFO] [stdout]     |     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:148:55
[INFO] [stdout]     |
[INFO] [stdout] 148 |     fn into_rust(self, options: &GeneratorOptions) -> Arg {
[INFO] [stdout]     |                                                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:153:22
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:153:36
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:154:62
[INFO] [stdout]     |
[INFO] [stdout] 154 |     fn into_rust(self, options: &GeneratorOptions) -> (Vec<P<Item>>, Vec<P<Item>>) {
[INFO] [stdout]     |                                                              ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:154:76
[INFO] [stdout]     |
[INFO] [stdout] 154 |     fn into_rust(self, options: &GeneratorOptions) -> (Vec<P<Item>>, Vec<P<Item>>) {
[INFO] [stdout]     |                                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:172:30
[INFO] [stdout]     |
[INFO] [stdout] 172 |             let methods: Vec<ImplItem> = f.into_rust(options);
[INFO] [stdout]     |                              ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<ImplItem> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:182:17
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl<Ty> IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:183:57
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn into_rust(self, options: &GeneratorOptions) -> P<Ty> {
[INFO] [stdout]     |                                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl<Ty> IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:213:17
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl<Item> IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:214:57
[INFO] [stdout]     |
[INFO] [stdout] 214 |     fn into_rust(self, options: &GeneratorOptions) -> P<Item> {
[INFO] [stdout]     |                                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl<Item> IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:220:17
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl<Expr> IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:221:57
[INFO] [stdout]     |
[INFO] [stdout] 221 |     fn into_rust(self, options: &GeneratorOptions) -> P<Expr> {
[INFO] [stdout]     |                                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl<Expr> IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:33
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg<Ty>(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `PatKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:44
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                            ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:56
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:5
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |     ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pat` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:26
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                          ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:36
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:82
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                                                                                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:241:54
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>, Ty>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:241:72
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:247:40
[INFO] [stdout]     |
[INFO] [stdout] 247 | pub fn to_attribute(span: Span, value: MetaItem, doc: bool) -> Attribute {
[INFO] [stdout]     |                                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:247:64
[INFO] [stdout]     |
[INFO] [stdout] 247 | pub fn to_attribute(span: Span, value: MetaItem, doc: bool) -> Attribute {
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:248:5
[INFO] [stdout]     |
[INFO] [stdout] 248 |     Attribute {
[INFO] [stdout]     |     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:257:51
[INFO] [stdout]     |
[INFO] [stdout] 257 | pub fn to_attribute_doc(span: Span, doc: &str) -> Attribute {
[INFO] [stdout]     |                                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:266:6
[INFO] [stdout]     |
[INFO] [stdout] 266 | ) -> Attribute {
[INFO] [stdout]     |      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:274:40
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block<Stmt>(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:274:52
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                                                    ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block<Block>(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:275:17
[INFO] [stdout]     |
[INFO] [stdout] 275 |     let block = Block {
[INFO] [stdout]     |                 ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:277:13
[INFO] [stdout]     |
[INFO] [stdout] 277 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ExprKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:284:34
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |                                  ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:284:49
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr<Expr>(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |               ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:285:7
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |       ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:285:18
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:48
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:68
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of<Expr>(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:80
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                                                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of<Expr>(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:43
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:67
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                                                   ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:80
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                                                                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:296:60
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>, Expr>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:296:82
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>, Expr>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:300:40
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg<Expr>(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:300:52
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg<Expr>(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:304:39
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                                       ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:304:50
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path<Expr>(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LitKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:308:38
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                                      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:308:52
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit<Expr>(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:312:53
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub fn to_expr_lit_int(span: Span, value: u64) -> P<Expr> {
[INFO] [stdout]     |                                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub fn to_expr_lit_int<Expr>(span: Span, value: u64) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:31
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                               ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl<Arg>(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                  +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FunctionRetTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:45
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:81
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                                                                                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl<FnDecl>(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                  ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:317:7
[INFO] [stdout]     |
[INFO] [stdout] 317 |     P(FnDecl { inputs: inputs, output: output, variadic: variadic })
[INFO] [stdout]     |       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:320:67
[INFO] [stdout]     |
[INFO] [stdout] 320 | pub fn to_foreign_item<S: AsRef<str>>(span: Span, ident: S, node: ForeignItemKind) -> ForeignItem {
[INFO] [stdout]     |                                                                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:320:87
[INFO] [stdout]     |
[INFO] [stdout] 320 | pub fn to_foreign_item<S: AsRef<str>>(span: Span, ident: S, node: ForeignItemKind) -> ForeignItem {
[INFO] [stdout]     |                                                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:321:5
[INFO] [stdout]     |
[INFO] [stdout] 321 |     ForeignItem {
[INFO] [stdout]     |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:325:13
[INFO] [stdout]     |
[INFO] [stdout] 325 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:331:72
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                                                        ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>, FnDecl>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:331:84
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                                                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:335:45
[INFO] [stdout]     |
[INFO] [stdout] 335 | pub fn to_ident<S: AsRef<str>>(ident: S) -> Ident {
[INFO] [stdout]     |                                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:339:64
[INFO] [stdout]     |
[INFO] [stdout] 339 | pub fn to_impl_item<S: AsRef<str>>(span: Span, ident: S, node: ImplItemKind) -> ImplItem {
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:339:81
[INFO] [stdout]     |
[INFO] [stdout] 339 | pub fn to_impl_item<S: AsRef<str>>(span: Span, ident: S, node: ImplItemKind) -> ImplItem {
[INFO] [stdout]     |                                                                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 |     ImplItem {
[INFO] [stdout]     |     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:341:13
[INFO] [stdout]     |
[INFO] [stdout] 341 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:39
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:59
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                                           ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn to_impl_item_method<S: AsRef<str>, FnDecl>(
[INFO] [stdout]     |                                         ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:77
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                                                             ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn to_impl_item_method<S: AsRef<str>, Block>(
[INFO] [stdout]     |                                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:353:6
[INFO] [stdout]     |
[INFO] [stdout] 353 | ) -> ImplItem {
[INFO] [stdout]     |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MethodSig` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:359:15
[INFO] [stdout]     |
[INFO] [stdout] 359 |     let sig = MethodSig {
[INFO] [stdout]     |               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:370:33
[INFO] [stdout]     |
[INFO] [stdout] 370 |     span: Span, ident: S, node: ItemKind, attrs: Vec<Attribute>
[INFO] [stdout]     |                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:370:54
[INFO] [stdout]     |
[INFO] [stdout] 370 |     span: Span, ident: S, node: ItemKind, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                      ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub fn to_item<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                             +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:371:8
[INFO] [stdout]     |
[INFO] [stdout] 371 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub fn to_item<S: AsRef<str>, Item>(
[INFO] [stdout]     |                             ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:376:16
[INFO] [stdout]     |
[INFO] [stdout] 376 |     let item = Item {
[INFO] [stdout]     |                ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:379:13
[INFO] [stdout]     |
[INFO] [stdout] 379 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:387:69
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                                                     ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>, ImplItem>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                  ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:387:85
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                                                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:399:70
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                                                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                 ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:399:83
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                                                                   ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                 ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Mod` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:400:40
[INFO] [stdout]     |
[INFO] [stdout] 400 |     to_item(span, ident, ItemKind::Mod(Mod { inner: span, items: items }), vec![])
[INFO] [stdout]     |                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:404:39
[INFO] [stdout]     |
[INFO] [stdout] 404 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, StructField>(
[INFO] [stdout]     |                                    +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:404:64
[INFO] [stdout]     |
[INFO] [stdout] 404 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                                    +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:405:8
[INFO] [stdout]     |
[INFO] [stdout] 405 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, Item>(
[INFO] [stdout]     |                                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:406:44
[INFO] [stdout]     |
[INFO] [stdout] 406 |     let data = VariantData::Struct(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:411:39
[INFO] [stdout]     |
[INFO] [stdout] 411 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, StructField>(
[INFO] [stdout]     |                                          +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:411:64
[INFO] [stdout]     |
[INFO] [stdout] 411 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                                          +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:412:8
[INFO] [stdout]     |
[INFO] [stdout] 412 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, Item>(
[INFO] [stdout]     |                                          ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:413:43
[INFO] [stdout]     |
[INFO] [stdout] 413 |     let data = VariantData::Tuple(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:417:63
[INFO] [stdout]     |
[INFO] [stdout] 417 | pub fn to_meta_item<S: AsRef<str>>(span: Span, name: S, node: MetaItemKind) -> MetaItem {
[INFO] [stdout]     |                                                               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:417:80
[INFO] [stdout]     |
[INFO] [stdout] 417 | pub fn to_meta_item<S: AsRef<str>>(span: Span, name: S, node: MetaItemKind) -> MetaItem {
[INFO] [stdout]     |                                                                                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:418:5
[INFO] [stdout]     |
[INFO] [stdout] 418 |     MetaItem { name: Symbol::intern(name.as_ref()), node: node, span: span }
[INFO] [stdout]     |     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:421:76
[INFO] [stdout]     |
[INFO] [stdout] 421 | pub fn to_path<S: AsRef<str>>(span: Span, global: bool, segments: &[S]) -> Path {
[INFO] [stdout]     |                                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PathSegment` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:423:9
[INFO] [stdout]     |
[INFO] [stdout] 423 |         PathSegment { identifier: to_ident(s), parameters: PathParameters::none() }
[INFO] [stdout]     |         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:425:5
[INFO] [stdout]     |
[INFO] [stdout] 425 |     Path { span: span, global: global, segments: segments }
[INFO] [stdout]     |     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 15  + use c::Type::Path;
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:428:41
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option<Ty>(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                      ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:428:49
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AngleBracketedParameterData` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:430:16
[INFO] [stdout]     |
[INFO] [stdout] 430 |     let data = AngleBracketedParameterData {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:437:41
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr<Expr>(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:437:51
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                                                   ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:438:5
[INFO] [stdout]     |
[INFO] [stdout] 438 |     Stmt {
[INFO] [stdout]     |     ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:439:13
[INFO] [stdout]     |
[INFO] [stdout] 439 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:445:75
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                                                           ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>, Ty>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:445:83
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                                                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:446:5
[INFO] [stdout]     |
[INFO] [stdout] 446 |     StructField {
[INFO] [stdout]     |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:450:13
[INFO] [stdout]     |
[INFO] [stdout] 450 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TyKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:456:32
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |                                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:456:45
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |                                             ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty<Ty>(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |             ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:457:7
[INFO] [stdout]     |
[INFO] [stdout] 457 |     P(Ty { id: DUMMY_NODE_ID, node: node, span: span })
[INFO] [stdout]     |       ^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:457:16
[INFO] [stdout]     |
[INFO] [stdout] 457 |     P(Ty { id: DUMMY_NODE_ID, node: node, span: span })
[INFO] [stdout]     |                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:460:38
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array<Ty>(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:460:63
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                                                               ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array<Ty>(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:464:42
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                                          ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn<FnDecl>(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:464:56
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                                                        ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn<Ty>(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BareFnTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:465:15
[INFO] [stdout]     |
[INFO] [stdout] 465 |     let fn_ = BareFnTy { unsafety: Unsafety::Normal, abi: Abi::C, lifetimes: vec![], decl: decl };
[INFO] [stdout]     |               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:469:81
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub fn to_ty_path<S: AsRef<str>>(span: Span, global: bool, segments: &[S]) -> P<Ty> {
[INFO] [stdout]     |                                                                                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub fn to_ty_path<S: AsRef<str>, Ty>(span: Span, global: bool, segments: &[S]) -> P<Ty> {
[INFO] [stdout]     |                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:42
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:60
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                                            ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr<Ty>(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:70
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr<Ty>(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MutTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:474:29
[INFO] [stdout]     |
[INFO] [stdout] 474 |     to_ty(span, TyKind::Ptr(MutTy { ty: ty, mutbl: mutability }))
[INFO] [stdout]     |                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mod` in this scope
[INFO] [stdout]    --> src/lib.rs:213:42
[INFO] [stdout]     |
[INFO] [stdout] 213 |     pub fn generate(&mut self) -> Result<Mod, String> {
[INFO] [stdout]     |                                          ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 109 | impl<Mod> Generator {
[INFO] [stdout]     |     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Mod` in this scope
[INFO] [stdout]    --> src/lib.rs:247:12
[INFO] [stdout]     |
[INFO] [stdout] 247 |         Ok(Mod { inner: self.options.span, items: opaque })
[INFO] [stdout]     |            ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:311:84
[INFO] [stdout]     |
[INFO] [stdout] 311 | fn generate_typedefs(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                                                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 311 | fn generate_typedefs<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:324:81
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn generate_enums(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                                                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn generate_enums<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:338:77
[INFO] [stdout]     |
[INFO] [stdout] 338 |     options: &GeneratorOptions, tus: &[TranslationUnit], nested: &mut Vec<P<Item>>
[INFO] [stdout]     |                                                                             ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn generate_records<Item>(
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:339:12
[INFO] [stdout]     |
[INFO] [stdout] 339 | ) -> Vec<P<Item>> {
[INFO] [stdout]     |            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn generate_records<Item>(
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:359:88
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                                                                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                      ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/lib.rs:374:26
[INFO] [stdout]     |
[INFO] [stdout] 374 |         }).collect::<Vec<ForeignItem>>();
[INFO] [stdout]     |                          ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions<ForeignItem>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                      +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForeignMod` in this scope
[INFO] [stdout]    --> src/lib.rs:376:46
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let functions = ItemKind::ForeignMod(ForeignMod { abi: Abi::C, items: functions });
[INFO] [stdout]     |                                              ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:381:17
[INFO] [stdout]     |
[INFO] [stdout] 381 | fn is_ty(item: &Item) -> bool {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `clang` is imported redundantly
[INFO] [stdout]   --> src/ast/c.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 | use clang::{self, Entity, EntityKind, TypeKind};
[INFO] [stdout]    |             ^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/lib.rs:25:1
[INFO] [stdout]    |
[INFO] [stdout] 25 | extern crate clang;
[INFO] [stdout]    | ------------------- the item `clang` is already imported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:220:21
[INFO] [stdout]     |
[INFO] [stdout] 220 |         let clang = try!(Clang::new().map_err(|_| "called from multiple threads simultaneously"));
[INFO] [stdout]     |                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:225:22
[INFO] [stdout]     |
[INFO] [stdout] 225 |             tus.push(try!(index.parser(header).arguments(&arguments[..]).parse()));
[INFO] [stdout]     |                      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]   --> src/ast/rust.rs:37:54
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let int = c::Type::Primitive("c_int".into()).into_rust(options);
[INFO] [stdout]    |                                                      ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/ast/c.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub enum Type {
[INFO] [stdout]    | ------------- method `into_rust` not found for this enum
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]   --> src/ast/rust.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait IntoRust<T> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Variant` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:63:36
[INFO] [stdout]     |
[INFO] [stdout] 63  |             let mut disr = variant.into_rust(options);
[INFO] [stdout]     |                                    ^^^^^^^^^ method not found in `Variant`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:487:1
[INFO] [stdout]     |
[INFO] [stdout] 487 | pub struct Variant {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]   --> src/ast/rust.rs:65:24
[INFO] [stdout]    |
[INFO] [stdout] 65 |             let node = ItemKind::Const(ty.clone(), disr);
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]   --> src/ast/rust.rs:37:54
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let int = c::Type::Primitive("c_int".into()).into_rust(options);
[INFO] [stdout]    |                                                      ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/ast/c.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub enum Type {
[INFO] [stdout]    | ------------- method `into_rust` not found for this enum
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]   --> src/ast/rust.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait IntoRust<T> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]   --> src/ast/rust.rs:83:70
[INFO] [stdout]    |
[INFO] [stdout] 83 |                 to_struct_field(options.span, Some(self.name), type_.into_rust(options)),
[INFO] [stdout]    |                                                                      ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/ast/c.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub enum Type {
[INFO] [stdout]    | ------------- method `into_rust` not found for this enum
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]   --> src/ast/rust.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait IntoRust<T> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:103:46
[INFO] [stdout]     |
[INFO] [stdout] 103 |             let ty = to_ty_ptr(options.span, Mutability::Mutable,t.into_rust(options));
[INFO] [stdout]     |                                              ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Variant` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:63:36
[INFO] [stdout]     |
[INFO] [stdout] 63  |             let mut disr = variant.into_rust(options);
[INFO] [stdout]     |                                    ^^^^^^^^^ method not found in `Variant`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:487:1
[INFO] [stdout]     |
[INFO] [stdout] 487 | pub struct Variant {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]   --> src/ast/rust.rs:65:24
[INFO] [stdout]    |
[INFO] [stdout] 65 |             let node = ItemKind::Const(ty.clone(), disr);
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:103:68
[INFO] [stdout]     |
[INFO] [stdout] 103 |             let ty = to_ty_ptr(options.span, Mutability::Mutable,t.into_rust(options));
[INFO] [stdout]     |                                                                    ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:104:43
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let decl = to_fn_decl(vec![], FunctionRetTy::Ty(ty), false);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:108:55
[INFO] [stdout]     |
[INFO] [stdout] 108 |             let field = to_expr_addr_of(options.span, Mutability::Mutable, field);
[INFO] [stdout]     |                                                       ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:112:55
[INFO] [stdout]     |
[INFO] [stdout] 112 |             Some(to_impl_item_method(options.span, n, Mutability::Mutable, decl, block))
[INFO] [stdout]     |                                                       ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]   --> src/ast/rust.rs:83:70
[INFO] [stdout]    |
[INFO] [stdout] 83 |                 to_struct_field(options.span, Some(self.name), type_.into_rust(options)),
[INFO] [stdout]    |                                                                      ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/ast/c.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub enum Type {
[INFO] [stdout]    | ------------- method `into_rust` not found for this enum
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]   --> src/ast/rust.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait IntoRust<T> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:103:46
[INFO] [stdout]     |
[INFO] [stdout] 103 |             let ty = to_ty_ptr(options.span, Mutability::Mutable,t.into_rust(options));
[INFO] [stdout]     |                                              ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:119:66
[INFO] [stdout]     |
[INFO] [stdout] 119 |         to_foreign_item_fn(options.span, self.name.clone(), self.into_rust(options))
[INFO] [stdout]     |                                                                  ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:103:68
[INFO] [stdout]     |
[INFO] [stdout] 103 |             let ty = to_ty_ptr(options.span, Mutability::Mutable,t.into_rust(options));
[INFO] [stdout]     |                                                                    ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:104:43
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let decl = to_fn_decl(vec![], FunctionRetTy::Ty(ty), false);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:108:55
[INFO] [stdout]     |
[INFO] [stdout] 108 |             let field = to_expr_addr_of(options.span, Mutability::Mutable, field);
[INFO] [stdout]     |                                                       ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:112:55
[INFO] [stdout]     |
[INFO] [stdout] 112 |             Some(to_impl_item_method(options.span, n, Mutability::Mutable, decl, block))
[INFO] [stdout]     |                                                       ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Parameter` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:125:60
[INFO] [stdout]     |
[INFO] [stdout] 125 |         let inputs = self.parameters.into_iter().map(|p| p.into_rust(options)).collect();
[INFO] [stdout]     |                                                            ^^^^^^^^^ method not found in `Parameter`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:297:1
[INFO] [stdout]     |
[INFO] [stdout] 297 | pub struct Parameter {
[INFO] [stdout]     | -------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:127:13
[INFO] [stdout]     |
[INFO] [stdout] 127 |             FunctionRetTy::Default(options.span)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:130:17
[INFO] [stdout]     |
[INFO] [stdout] 130 |                 FunctionRetTy::Default(options.span)
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:135:13
[INFO] [stdout]     |
[INFO] [stdout] 135 |             FunctionRetTy::Ty(self.result.into_rust(options))
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:119:66
[INFO] [stdout]     |
[INFO] [stdout] 119 |         to_foreign_item_fn(options.span, self.name.clone(), self.into_rust(options))
[INFO] [stdout]     |                                                                  ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:135:43
[INFO] [stdout]     |
[INFO] [stdout] 135 |             FunctionRetTy::Ty(self.result.into_rust(options))
[INFO] [stdout]     |                                           ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Parameter` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:125:60
[INFO] [stdout]     |
[INFO] [stdout] 125 |         let inputs = self.parameters.into_iter().map(|p| p.into_rust(options)).collect();
[INFO] [stdout]     |                                                            ^^^^^^^^^ method not found in `Parameter`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:297:1
[INFO] [stdout]     |
[INFO] [stdout] 297 | pub struct Parameter {
[INFO] [stdout]     | -------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:127:13
[INFO] [stdout]     |
[INFO] [stdout] 127 |             FunctionRetTy::Default(options.span)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:130:17
[INFO] [stdout]     |
[INFO] [stdout] 130 |                 FunctionRetTy::Default(options.span)
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:135:13
[INFO] [stdout]     |
[INFO] [stdout] 135 |             FunctionRetTy::Ty(self.result.into_rust(options))
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:143:42
[INFO] [stdout]     |
[INFO] [stdout] 143 |         to_ty_bare_fn(options.span, self.into_rust(options))
[INFO] [stdout]     |                                          ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:135:43
[INFO] [stdout]     |
[INFO] [stdout] 135 |             FunctionRetTy::Ty(self.result.into_rust(options))
[INFO] [stdout]     |                                           ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:143:42
[INFO] [stdout]     |
[INFO] [stdout] 143 |         to_ty_bare_fn(options.span, self.into_rust(options))
[INFO] [stdout]     |                                          ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:149:47
[INFO] [stdout]     |
[INFO] [stdout] 149 |         to_arg_ident(options.span, self.type_.into_rust(options), self.name)
[INFO] [stdout]     |                                               ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:149:47
[INFO] [stdout]     |
[INFO] [stdout] 149 |         to_arg_ident(options.span, self.type_.into_rust(options), self.name)
[INFO] [stdout]     |                                               ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Enum` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:157:33
[INFO] [stdout]     |
[INFO] [stdout] 157 |             nested.extend(enum_.into_rust(options).into_iter());
[INFO] [stdout]     |                                 ^^^^^^^^^ method not found in `Enum`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:220:1
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub struct Enum {
[INFO] [stdout]     | --------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Enum` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:157:33
[INFO] [stdout]     |
[INFO] [stdout] 157 |             nested.extend(enum_.into_rust(options).into_iter());
[INFO] [stdout]     |                                 ^^^^^^^^^ method not found in `Enum`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:220:1
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub struct Enum {
[INFO] [stdout]     | --------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Record` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:160:45
[INFO] [stdout]     |
[INFO] [stdout] 160 |             let (subnested, items) = record.into_rust(options);
[INFO] [stdout]     |                                             ^^^^^^^^^ method not found in `Record`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:313:1
[INFO] [stdout]     |
[INFO] [stdout] 313 | pub struct Record {
[INFO] [stdout]     | ----------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Record` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:160:45
[INFO] [stdout]     |
[INFO] [stdout] 160 |             let (subnested, items) = record.into_rust(options);
[INFO] [stdout]     |                                             ^^^^^^^^^ method not found in `Record`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:313:1
[INFO] [stdout]     |
[INFO] [stdout] 313 | pub struct Record {
[INFO] [stdout]     | ----------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Field` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:164:64
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let fields = self.fields.clone().into_iter().map(|f| f.into_rust(options)).collect();
[INFO] [stdout]     |                                                                ^^^^^^^^^ method not found in `Field`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub struct Field {
[INFO] [stdout]     | ---------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Field` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:172:44
[INFO] [stdout]     |
[INFO] [stdout] 172 |             let methods: Vec<ImplItem> = f.into_rust(options);
[INFO] [stdout]     |                                            ^^^^^^^^^ method not found in `Field`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub struct Field {
[INFO] [stdout]     | ---------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Field` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:164:64
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let fields = self.fields.clone().into_iter().map(|f| f.into_rust(options)).collect();
[INFO] [stdout]     |                                                                ^^^^^^^^^ method not found in `Field`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub struct Field {
[INFO] [stdout]     | ---------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<ast::c::Type>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:186:51
[INFO] [stdout]     |
[INFO] [stdout] 186 |                 to_ty_array(options.span, element.into_rust(options), size),
[INFO] [stdout]     |                                                   ^^^^^^^^^ method not found in `Box<Type>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Field` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:172:44
[INFO] [stdout]     |
[INFO] [stdout] 172 |             let methods: Vec<ImplItem> = f.into_rust(options);
[INFO] [stdout]     |                                            ^^^^^^^^^ method not found in `Field`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub struct Field {
[INFO] [stdout]     | ---------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<Function>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:190:66
[INFO] [stdout]     |
[INFO] [stdout] 190 |                 let path = to_path_option(options.span, function.into_rust(options));
[INFO] [stdout]     |                                                                  ^^^^^^^^^ method not found in `Box<Function>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:191:37
[INFO] [stdout]     |
[INFO] [stdout] 191 |                 to_ty(options.span, TyKind::Path(None, path))
[INFO] [stdout]     |                                     ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<ast::c::Type>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:186:51
[INFO] [stdout]     |
[INFO] [stdout] 186 |                 to_ty_array(options.span, element.into_rust(options), size),
[INFO] [stdout]     |                                                   ^^^^^^^^^ method not found in `Box<Type>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<ast::c::Type>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:197:61
[INFO] [stdout]     |
[INFO] [stdout] 197 |                 to_ty_ptr(options.span, mutability, pointee.into_rust(options)),
[INFO] [stdout]     |                                                             ^^^^^^^^^ method not found in `Box<Type>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<Function>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:190:66
[INFO] [stdout]     |
[INFO] [stdout] 190 |                 let path = to_path_option(options.span, function.into_rust(options));
[INFO] [stdout]     |                                                                  ^^^^^^^^^ method not found in `Box<Function>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:191:37
[INFO] [stdout]     |
[INFO] [stdout] 191 |                 to_ty(options.span, TyKind::Path(None, path))
[INFO] [stdout]     |                                     ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:205:53
[INFO] [stdout]     |
[INFO] [stdout] 205 |                 c::Type::Primitive("c_void".into()).into_rust(options)
[INFO] [stdout]     |                                                     ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                    ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<ast::c::Type>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:197:61
[INFO] [stdout]     |
[INFO] [stdout] 197 |                 to_ty_ptr(options.span, mutability, pointee.into_rust(options)),
[INFO] [stdout]     |                                                             ^^^^^^^^^ method not found in `Box<Type>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:215:44
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                                            ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:215:64
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                                                                ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatKind`
[INFO] [stdout]    --> src/ast/rust.rs:243:16
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                ^^^^^^^ use of undeclared type `PatKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BindingMode`
[INFO] [stdout]    --> src/ast/rust.rs:243:31
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                               ^^^^^^^^^^^ use of undeclared type `BindingMode`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:243:52
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                                                    ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AttrId` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         id: AttrId(0),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AttrStyle`
[INFO] [stdout]    --> src/ast/rust.rs:250:16
[INFO] [stdout]     |
[INFO] [stdout] 250 |         style: AttrStyle::Outer,
[INFO] [stdout]     |                ^^^^^^^^^ use of undeclared type `AttrStyle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitKind`
[INFO] [stdout]    --> src/ast/rust.rs:259:37
[INFO] [stdout]     |
[INFO] [stdout] 259 |     let lit = codemap::respan(span, LitKind::Str(doc, StrStyle::Cooked));
[INFO] [stdout]     |                                     ^^^^^^^ use of undeclared type `LitKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StrStyle`
[INFO] [stdout]    --> src/ast/rust.rs:259:55
[INFO] [stdout]     |
[INFO] [stdout] 259 |     let lit = codemap::respan(span, LitKind::Str(doc, StrStyle::Cooked));
[INFO] [stdout]     |                                                       ^^^^^^^^ use of undeclared type `StrStyle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:260:43
[INFO] [stdout]     |
[INFO] [stdout] 260 |     let value = to_meta_item(span, "doc", MetaItemKind::NameValue(lit));
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:268:42
[INFO] [stdout]     |
[INFO] [stdout] 268 |         let meta = to_meta_item(span, w, MetaItemKind::Word);
[INFO] [stdout]     |                                          ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NestedMetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:269:31
[INFO] [stdout]     |
[INFO] [stdout] 269 |         codemap::respan(span, NestedMetaItemKind::MetaItem(meta))
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^ use of undeclared type `NestedMetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:271:50
[INFO] [stdout]     |
[INFO] [stdout] 271 |     to_attribute(span, to_meta_item(span, outer, MetaItemKind::List(inner)), false)
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BlockCheckMode`
[INFO] [stdout]    --> src/ast/rust.rs:278:16
[INFO] [stdout]     |
[INFO] [stdout] 278 |         rules: BlockCheckMode::Default,
[INFO] [stdout]     |                ^^^^^^^^^^^^^^ use of undeclared type `BlockCheckMode`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ThinVec`
[INFO] [stdout]    --> src/ast/rust.rs:285:64
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |                                                                ^^^^^^^ use of undeclared type `ThinVec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:289:19
[INFO] [stdout]     |
[INFO] [stdout] 289 |     to_expr(span, ExprKind::AddrOf(mutability, expr))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:293:19
[INFO] [stdout]     |
[INFO] [stdout] 293 |     to_expr(span, ExprKind::Call(callee, arguments))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:297:19
[INFO] [stdout]     |
[INFO] [stdout] 297 |     to_expr(span, ExprKind::Field(struct_, codemap::respan(span, to_ident(ident))))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:301:19
[INFO] [stdout]     |
[INFO] [stdout] 301 |     to_expr(span, ExprKind::Unary(UnOp::Neg, expr))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnOp`
[INFO] [stdout]    --> src/ast/rust.rs:301:35
[INFO] [stdout]     |
[INFO] [stdout] 301 |     to_expr(span, ExprKind::Unary(UnOp::Neg, expr))
[INFO] [stdout]     |                                   ^^^^ use of undeclared type `UnOp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:305:19
[INFO] [stdout]     |
[INFO] [stdout] 305 |     to_expr(span, ExprKind::Path(None, path))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:309:19
[INFO] [stdout]     |
[INFO] [stdout] 309 |     to_expr(span, ExprKind::Lit(P(codemap::respan(span, node))))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitKind`
[INFO] [stdout]    --> src/ast/rust.rs:313:23
[INFO] [stdout]     |
[INFO] [stdout] 313 |     to_expr_lit(span, LitKind::Int(value, LitIntType::Unsuffixed))
[INFO] [stdout]     |                       ^^^^^^^ use of undeclared type `LitKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitIntType`
[INFO] [stdout]    --> src/ast/rust.rs:313:43
[INFO] [stdout]     |
[INFO] [stdout] 313 |     to_expr_lit(span, LitKind::Int(value, LitIntType::Unsuffixed))
[INFO] [stdout]     |                                           ^^^^^^^^^^ use of undeclared type `LitIntType`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:327:14
[INFO] [stdout]     |
[INFO] [stdout] 327 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ForeignItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:332:34
[INFO] [stdout]     |
[INFO] [stdout] 332 |     to_foreign_item(span, ident, ForeignItemKind::Fn(decl, Generics::default()))
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^ use of undeclared type `ForeignItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:332:60
[INFO] [stdout]     |
[INFO] [stdout] 332 |     to_foreign_item(span, ident, ForeignItemKind::Fn(decl, Generics::default()))
[INFO] [stdout]     |                                                            ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ident`
[INFO] [stdout]    --> src/ast/rust.rs:336:5
[INFO] [stdout]     |
[INFO] [stdout] 336 |     Ident::from_str(ident.as_ref())
[INFO] [stdout]     |     ^^^^^ use of undeclared type `Ident`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:343:14
[INFO] [stdout]     |
[INFO] [stdout] 343 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Defaultness`
[INFO] [stdout]    --> src/ast/rust.rs:344:22
[INFO] [stdout]     |
[INFO] [stdout] 344 |         defaultness: Defaultness::Final,
[INFO] [stdout]     |                      ^^^^^^^^^^^ use of undeclared type `Defaultness`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SelfKind`
[INFO] [stdout]    --> src/ast/rust.rs:355:43
[INFO] [stdout]     |
[INFO] [stdout] 355 |         let self_ = codemap::respan(span, SelfKind::Region(None, mutability));
[INFO] [stdout]     |                                           ^^^^^^^^ use of undeclared type `SelfKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arg`
[INFO] [stdout]    --> src/ast/rust.rs:356:28
[INFO] [stdout]     |
[INFO] [stdout] 356 |         d.inputs.insert(0, Arg::from_self(self_, codemap::respan(span, to_ident("self"))));
[INFO] [stdout]     |                            ^^^ use of undeclared type `Arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:360:19
[INFO] [stdout]     |
[INFO] [stdout] 360 |         unsafety: Unsafety::Unsafe,
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Constness`
[INFO] [stdout]    --> src/ast/rust.rs:361:42
[INFO] [stdout]     |
[INFO] [stdout] 361 |         constness: codemap::respan(span, Constness::NotConst),
[INFO] [stdout]     |                                          ^^^^^^^^^ use of undeclared type `Constness`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:364:19
[INFO] [stdout]     |
[INFO] [stdout] 364 |         generics: Generics::default(),
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImplItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:366:31
[INFO] [stdout]     |
[INFO] [stdout] 366 |     to_impl_item(span, ident, ImplItemKind::Method(sig, block))
[INFO] [stdout]     |                               ^^^^^^^^^^^^ use of undeclared type `ImplItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:373:71
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |                                                                       ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:374:14
[INFO] [stdout]     |
[INFO] [stdout] 374 |         _ => Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:388:16
[INFO] [stdout]     |
[INFO] [stdout] 388 |     let node = ItemKind::Impl(
[INFO] [stdout]     |                ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:389:9
[INFO] [stdout]     |
[INFO] [stdout] 389 |         Unsafety::Normal,
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImplPolarity`
[INFO] [stdout]    --> src/ast/rust.rs:390:9
[INFO] [stdout]     |
[INFO] [stdout] 390 |         ImplPolarity::Positive,
[INFO] [stdout]     |         ^^^^^^^^^^^^ use of undeclared type `ImplPolarity`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         Generics::default(),
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:393:21
[INFO] [stdout]     |
[INFO] [stdout] 393 |         to_ty(span, TyKind::Path(None, to_path(span, false, &[ident.as_ref()]))),
[INFO] [stdout]     |                     ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:400:26
[INFO] [stdout]     |
[INFO] [stdout] 400 |     to_item(span, ident, ItemKind::Mod(Mod { inner: span, items: items }), vec![])
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariantData`
[INFO] [stdout]    --> src/ast/rust.rs:406:16
[INFO] [stdout]     |
[INFO] [stdout] 406 |     let data = VariantData::Struct(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                ^^^^^^^^^^^ use of undeclared type `VariantData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:407:26
[INFO] [stdout]     |
[INFO] [stdout] 407 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:407:49
[INFO] [stdout]     |
[INFO] [stdout] 407 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariantData`
[INFO] [stdout]    --> src/ast/rust.rs:413:16
[INFO] [stdout]     |
[INFO] [stdout] 413 |     let data = VariantData::Tuple(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                ^^^^^^^^^^^ use of undeclared type `VariantData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:414:26
[INFO] [stdout]     |
[INFO] [stdout] 414 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:414:49
[INFO] [stdout]     |
[INFO] [stdout] 414 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathParameters`
[INFO] [stdout]    --> src/ast/rust.rs:423:60
[INFO] [stdout]     |
[INFO] [stdout] 423 |         PathSegment { identifier: to_ident(s), parameters: PathParameters::none() }
[INFO] [stdout]     |                                                            ^^^^^^^^^^^^^^ use of undeclared type `PathParameters`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:205:53
[INFO] [stdout]     |
[INFO] [stdout] 205 |                 c::Type::Primitive("c_void".into()).into_rust(options)
[INFO] [stdout]     |                                                     ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                    ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathParameters`
[INFO] [stdout]    --> src/ast/rust.rs:433:35
[INFO] [stdout]     |
[INFO] [stdout] 433 |     path.segments[2].parameters = PathParameters::AngleBracketed(data);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^ use of undeclared type `PathParameters`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StmtKind`
[INFO] [stdout]    --> src/ast/rust.rs:440:15
[INFO] [stdout]     |
[INFO] [stdout] 440 |         node: StmtKind::Expr(expr),
[INFO] [stdout]     |               ^^^^^^^^ use of undeclared type `StmtKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:449:14
[INFO] [stdout]     |
[INFO] [stdout] 449 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:461:17
[INFO] [stdout]     |
[INFO] [stdout] 461 |     to_ty(span, TyKind::Array(ty, to_expr_lit_int(span, length as u64)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:465:36
[INFO] [stdout]     |
[INFO] [stdout] 465 |     let fn_ = BareFnTy { unsafety: Unsafety::Normal, abi: Abi::C, lifetimes: vec![], decl: decl };
[INFO] [stdout]     |                                    ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:466:17
[INFO] [stdout]     |
[INFO] [stdout] 466 |     to_ty(span, TyKind::BareFn(P(fn_)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:470:17
[INFO] [stdout]     |
[INFO] [stdout] 470 |     to_ty(span, TyKind::Path(None, to_path(span, global, segments)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:474:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |     to_ty(span, TyKind::Ptr(MutTy { ty: ty, mutbl: mutability }))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:215:44
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                                            ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:215:64
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                                                                ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatKind`
[INFO] [stdout]    --> src/ast/rust.rs:243:16
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                ^^^^^^^ use of undeclared type `PatKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BindingMode`
[INFO] [stdout]    --> src/ast/rust.rs:243:31
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                               ^^^^^^^^^^^ use of undeclared type `BindingMode`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:243:52
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                                                    ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AttrId` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         id: AttrId(0),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AttrStyle`
[INFO] [stdout]    --> src/ast/rust.rs:250:16
[INFO] [stdout]     |
[INFO] [stdout] 250 |         style: AttrStyle::Outer,
[INFO] [stdout]     |                ^^^^^^^^^ use of undeclared type `AttrStyle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitKind`
[INFO] [stdout]    --> src/ast/rust.rs:259:37
[INFO] [stdout]     |
[INFO] [stdout] 259 |     let lit = codemap::respan(span, LitKind::Str(doc, StrStyle::Cooked));
[INFO] [stdout]     |                                     ^^^^^^^ use of undeclared type `LitKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StrStyle`
[INFO] [stdout]    --> src/ast/rust.rs:259:55
[INFO] [stdout]     |
[INFO] [stdout] 259 |     let lit = codemap::respan(span, LitKind::Str(doc, StrStyle::Cooked));
[INFO] [stdout]     |                                                       ^^^^^^^^ use of undeclared type `StrStyle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:260:43
[INFO] [stdout]     |
[INFO] [stdout] 260 |     let value = to_meta_item(span, "doc", MetaItemKind::NameValue(lit));
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:268:42
[INFO] [stdout]     |
[INFO] [stdout] 268 |         let meta = to_meta_item(span, w, MetaItemKind::Word);
[INFO] [stdout]     |                                          ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NestedMetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:269:31
[INFO] [stdout]     |
[INFO] [stdout] 269 |         codemap::respan(span, NestedMetaItemKind::MetaItem(meta))
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^ use of undeclared type `NestedMetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:271:50
[INFO] [stdout]     |
[INFO] [stdout] 271 |     to_attribute(span, to_meta_item(span, outer, MetaItemKind::List(inner)), false)
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BlockCheckMode`
[INFO] [stdout]    --> src/ast/rust.rs:278:16
[INFO] [stdout]     |
[INFO] [stdout] 278 |         rules: BlockCheckMode::Default,
[INFO] [stdout]     |                ^^^^^^^^^^^^^^ use of undeclared type `BlockCheckMode`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ThinVec`
[INFO] [stdout]    --> src/ast/rust.rs:285:64
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |                                                                ^^^^^^^ use of undeclared type `ThinVec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:289:19
[INFO] [stdout]     |
[INFO] [stdout] 289 |     to_expr(span, ExprKind::AddrOf(mutability, expr))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:293:19
[INFO] [stdout]     |
[INFO] [stdout] 293 |     to_expr(span, ExprKind::Call(callee, arguments))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:297:19
[INFO] [stdout]     |
[INFO] [stdout] 297 |     to_expr(span, ExprKind::Field(struct_, codemap::respan(span, to_ident(ident))))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:301:19
[INFO] [stdout]     |
[INFO] [stdout] 301 |     to_expr(span, ExprKind::Unary(UnOp::Neg, expr))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnOp`
[INFO] [stdout]    --> src/ast/rust.rs:301:35
[INFO] [stdout]     |
[INFO] [stdout] 301 |     to_expr(span, ExprKind::Unary(UnOp::Neg, expr))
[INFO] [stdout]     |                                   ^^^^ use of undeclared type `UnOp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:305:19
[INFO] [stdout]     |
[INFO] [stdout] 305 |     to_expr(span, ExprKind::Path(None, path))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:309:19
[INFO] [stdout]     |
[INFO] [stdout] 309 |     to_expr(span, ExprKind::Lit(P(codemap::respan(span, node))))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitKind`
[INFO] [stdout]    --> src/ast/rust.rs:313:23
[INFO] [stdout]     |
[INFO] [stdout] 313 |     to_expr_lit(span, LitKind::Int(value, LitIntType::Unsuffixed))
[INFO] [stdout]     |                       ^^^^^^^ use of undeclared type `LitKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitIntType`
[INFO] [stdout]    --> src/ast/rust.rs:313:43
[INFO] [stdout]     |
[INFO] [stdout] 313 |     to_expr_lit(span, LitKind::Int(value, LitIntType::Unsuffixed))
[INFO] [stdout]     |                                           ^^^^^^^^^^ use of undeclared type `LitIntType`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:327:14
[INFO] [stdout]     |
[INFO] [stdout] 327 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ForeignItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:332:34
[INFO] [stdout]     |
[INFO] [stdout] 332 |     to_foreign_item(span, ident, ForeignItemKind::Fn(decl, Generics::default()))
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^ use of undeclared type `ForeignItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:332:60
[INFO] [stdout]     |
[INFO] [stdout] 332 |     to_foreign_item(span, ident, ForeignItemKind::Fn(decl, Generics::default()))
[INFO] [stdout]     |                                                            ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ident`
[INFO] [stdout]    --> src/ast/rust.rs:336:5
[INFO] [stdout]     |
[INFO] [stdout] 336 |     Ident::from_str(ident.as_ref())
[INFO] [stdout]     |     ^^^^^ use of undeclared type `Ident`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:343:14
[INFO] [stdout]     |
[INFO] [stdout] 343 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Defaultness`
[INFO] [stdout]    --> src/ast/rust.rs:344:22
[INFO] [stdout]     |
[INFO] [stdout] 344 |         defaultness: Defaultness::Final,
[INFO] [stdout]     |                      ^^^^^^^^^^^ use of undeclared type `Defaultness`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SelfKind`
[INFO] [stdout]    --> src/ast/rust.rs:355:43
[INFO] [stdout]     |
[INFO] [stdout] 355 |         let self_ = codemap::respan(span, SelfKind::Region(None, mutability));
[INFO] [stdout]     |                                           ^^^^^^^^ use of undeclared type `SelfKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arg`
[INFO] [stdout]    --> src/ast/rust.rs:356:28
[INFO] [stdout]     |
[INFO] [stdout] 356 |         d.inputs.insert(0, Arg::from_self(self_, codemap::respan(span, to_ident("self"))));
[INFO] [stdout]     |                            ^^^ use of undeclared type `Arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:360:19
[INFO] [stdout]     |
[INFO] [stdout] 360 |         unsafety: Unsafety::Unsafe,
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Constness`
[INFO] [stdout]    --> src/ast/rust.rs:361:42
[INFO] [stdout]     |
[INFO] [stdout] 361 |         constness: codemap::respan(span, Constness::NotConst),
[INFO] [stdout]     |                                          ^^^^^^^^^ use of undeclared type `Constness`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:364:19
[INFO] [stdout]     |
[INFO] [stdout] 364 |         generics: Generics::default(),
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImplItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:366:31
[INFO] [stdout]     |
[INFO] [stdout] 366 |     to_impl_item(span, ident, ImplItemKind::Method(sig, block))
[INFO] [stdout]     |                               ^^^^^^^^^^^^ use of undeclared type `ImplItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:373:71
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |                                                                       ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:374:14
[INFO] [stdout]     |
[INFO] [stdout] 374 |         _ => Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:388:16
[INFO] [stdout]     |
[INFO] [stdout] 388 |     let node = ItemKind::Impl(
[INFO] [stdout]     |                ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:389:9
[INFO] [stdout]     |
[INFO] [stdout] 389 |         Unsafety::Normal,
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImplPolarity`
[INFO] [stdout]    --> src/ast/rust.rs:390:9
[INFO] [stdout]     |
[INFO] [stdout] 390 |         ImplPolarity::Positive,
[INFO] [stdout]     |         ^^^^^^^^^^^^ use of undeclared type `ImplPolarity`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         Generics::default(),
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:393:21
[INFO] [stdout]     |
[INFO] [stdout] 393 |         to_ty(span, TyKind::Path(None, to_path(span, false, &[ident.as_ref()]))),
[INFO] [stdout]     |                     ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:400:26
[INFO] [stdout]     |
[INFO] [stdout] 400 |     to_item(span, ident, ItemKind::Mod(Mod { inner: span, items: items }), vec![])
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariantData`
[INFO] [stdout]    --> src/ast/rust.rs:406:16
[INFO] [stdout]     |
[INFO] [stdout] 406 |     let data = VariantData::Struct(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                ^^^^^^^^^^^ use of undeclared type `VariantData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:407:26
[INFO] [stdout]     |
[INFO] [stdout] 407 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:407:49
[INFO] [stdout]     |
[INFO] [stdout] 407 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariantData`
[INFO] [stdout]    --> src/ast/rust.rs:413:16
[INFO] [stdout]     |
[INFO] [stdout] 413 |     let data = VariantData::Tuple(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                ^^^^^^^^^^^ use of undeclared type `VariantData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:414:26
[INFO] [stdout]     |
[INFO] [stdout] 414 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:414:49
[INFO] [stdout]     |
[INFO] [stdout] 414 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathParameters`
[INFO] [stdout]    --> src/ast/rust.rs:423:60
[INFO] [stdout]     |
[INFO] [stdout] 423 |         PathSegment { identifier: to_ident(s), parameters: PathParameters::none() }
[INFO] [stdout]     |                                                            ^^^^^^^^^^^^^^ use of undeclared type `PathParameters`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathParameters`
[INFO] [stdout]    --> src/ast/rust.rs:433:35
[INFO] [stdout]     |
[INFO] [stdout] 433 |     path.segments[2].parameters = PathParameters::AngleBracketed(data);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^ use of undeclared type `PathParameters`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StmtKind`
[INFO] [stdout]    --> src/ast/rust.rs:440:15
[INFO] [stdout]     |
[INFO] [stdout] 440 |         node: StmtKind::Expr(expr),
[INFO] [stdout]     |               ^^^^^^^^ use of undeclared type `StmtKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:449:14
[INFO] [stdout]     |
[INFO] [stdout] 449 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:461:17
[INFO] [stdout]     |
[INFO] [stdout] 461 |     to_ty(span, TyKind::Array(ty, to_expr_lit_int(span, length as u64)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:465:36
[INFO] [stdout]     |
[INFO] [stdout] 465 |     let fn_ = BareFnTy { unsafety: Unsafety::Normal, abi: Abi::C, lifetimes: vec![], decl: decl };
[INFO] [stdout]     |                                    ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:466:17
[INFO] [stdout]     |
[INFO] [stdout] 466 |     to_ty(span, TyKind::BareFn(P(fn_)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:470:17
[INFO] [stdout]     |
[INFO] [stdout] 470 |     to_ty(span, TyKind::Path(None, to_path(span, global, segments)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:474:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |     to_ty(span, TyKind::Ptr(MutTy { ty: ty, mutbl: mutability }))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Typedef` in the current scope
[INFO] [stdout]    --> src/lib.rs:242:15
[INFO] [stdout]     |
[INFO] [stdout] 242 |             t.into_rust(&self.options)
[INFO] [stdout]     |               ^^^^^^^^^ method not found in `Typedef`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:469:1
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub struct Typedef {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Typedef` in the current scope
[INFO] [stdout]    --> src/lib.rs:242:15
[INFO] [stdout]     |
[INFO] [stdout] 242 |             t.into_rust(&self.options)
[INFO] [stdout]     |               ^^^^^^^^^ method not found in `Typedef`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:469:1
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub struct Typedef {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Typedef` in the current scope
[INFO] [stdout]    --> src/lib.rs:319:60
[INFO] [stdout]     |
[INFO] [stdout] 319 |     let mut typedefs = typedefs.into_iter().map(|(_, t)| t.into_rust(options)).collect::<Vec<_>>();
[INFO] [stdout]     |                                                            ^^^^^^^^^ method not found in `Typedef`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:469:1
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub struct Typedef {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Typedef` in the current scope
[INFO] [stdout]    --> src/lib.rs:319:60
[INFO] [stdout]     |
[INFO] [stdout] 319 |     let mut typedefs = typedefs.into_iter().map(|(_, t)| t.into_rust(options)).collect::<Vec<_>>();
[INFO] [stdout]     |                                                            ^^^^^^^^^ method not found in `Typedef`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:469:1
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub struct Typedef {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Enum` in the current scope
[INFO] [stdout]    --> src/lib.rs:332:54
[INFO] [stdout]     |
[INFO] [stdout] 332 |     let mut enums = enums.into_iter().map(|(_, e)| e.into_rust(options)).collect::<Vec<_>>();
[INFO] [stdout]     |                                                      ^^^^^^^^^ method not found in `Enum`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:220:1
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub struct Enum {
[INFO] [stdout]     | --------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Enum` in the current scope
[INFO] [stdout]    --> src/lib.rs:332:54
[INFO] [stdout]     |
[INFO] [stdout] 332 |     let mut enums = enums.into_iter().map(|(_, e)| e.into_rust(options)).collect::<Vec<_>>();
[INFO] [stdout]     |                                                      ^^^^^^^^^ method not found in `Enum`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:220:1
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub struct Enum {
[INFO] [stdout]     | --------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Record` in the current scope
[INFO] [stdout]    --> src/lib.rs:351:36
[INFO] [stdout]     |
[INFO] [stdout] 351 |         let (subnested, items) = r.into_rust(options);
[INFO] [stdout]     |                                    ^^^^^^^^^ method not found in `Record`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:313:1
[INFO] [stdout]     |
[INFO] [stdout] 313 | pub struct Record {
[INFO] [stdout]     | ----------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Record` in the current scope
[INFO] [stdout]    --> src/lib.rs:351:36
[INFO] [stdout]     |
[INFO] [stdout] 351 |         let (subnested, items) = r.into_rust(options);
[INFO] [stdout]     |                                    ^^^^^^^^^ method not found in `Record`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:313:1
[INFO] [stdout]     |
[INFO] [stdout] 313 | pub struct Record {
[INFO] [stdout]     | ----------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/lib.rs:373:15
[INFO] [stdout]     |
[INFO] [stdout] 373 |             f.into_rust(options)
[INFO] [stdout]     |               ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/lib.rs:376:25
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let functions = ItemKind::ForeignMod(ForeignMod { abi: Abi::C, items: functions });
[INFO] [stdout]     |                         ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/lib.rs:373:15
[INFO] [stdout]     |
[INFO] [stdout] 373 |             f.into_rust(options)
[INFO] [stdout]     |               ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:373:35
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |                                   ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/lib.rs:382:12
[INFO] [stdout]     |
[INFO] [stdout] 382 |     if let ItemKind::Ty(_, _) = item.node {
[INFO] [stdout]     |            ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:373:9
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 238 previous errors; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0463, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/lib.rs:376:25
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let functions = ItemKind::ForeignMod(ForeignMod { abi: Abi::C, items: functions });
[INFO] [stdout]     |                         ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `crustacean` (lib) due to 239 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:373:35
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |                                   ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/lib.rs:382:12
[INFO] [stdout]     |
[INFO] [stdout] 382 |     if let ItemKind::Ty(_, _) = item.node {
[INFO] [stdout]     |            ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:373:9
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 238 previous errors; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0463, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `crustacean` (lib test) due to 239 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "defd2f69fa60cb1bcda49635ba552a5eae4c43cc3554a19ba3b6697764a53eff", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "defd2f69fa60cb1bcda49635ba552a5eae4c43cc3554a19ba3b6697764a53eff", kill_on_drop: false }`
[INFO] [stdout] defd2f69fa60cb1bcda49635ba552a5eae4c43cc3554a19ba3b6697764a53eff
[INFO] checking crustacean-0.3.1 against try#72eda894eb3548c7ba774079ce0afab42958d4ee for pr-121848-1
[INFO] extracting crate crustacean 0.3.1 into /workspace/builds/worker-1-tc2/source
[INFO] validating manifest of crates.io crate crustacean 0.3.1 on toolchain 72eda894eb3548c7ba774079ce0afab42958d4ee
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate crustacean 0.3.1
[INFO] finished tweaking crates.io crate crustacean 0.3.1
[INFO] tweaked toml for crates.io crate crustacean 0.3.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7a844a6d4b5e96ace31bd96a382bc635c76e3ed1238c47878388aebefe58306c
[INFO] running `Command { std: "docker" "start" "-a" "7a844a6d4b5e96ace31bd96a382bc635c76e3ed1238c47878388aebefe58306c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7a844a6d4b5e96ace31bd96a382bc635c76e3ed1238c47878388aebefe58306c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7a844a6d4b5e96ace31bd96a382bc635c76e3ed1238c47878388aebefe58306c", kill_on_drop: false }`
[INFO] [stdout] 7a844a6d4b5e96ace31bd96a382bc635c76e3ed1238c47878388aebefe58306c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+72eda894eb3548c7ba774079ce0afab42958d4ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] beac7d5545d4cfe81463333e600a9014d7841bb931a4c50de9f4cdfbf9eb18d7
[INFO] running `Command { std: "docker" "start" "-a" "beac7d5545d4cfe81463333e600a9014d7841bb931a4c50de9f4cdfbf9eb18d7", kill_on_drop: false }`
[INFO] [stderr]    Compiling glob v0.2.11
[INFO] [stderr]     Checking bitflags v0.7.0
[INFO] [stderr]     Checking lazy_static v0.2.11
[INFO] [stderr]    Compiling clang-sys v0.13.0
[INFO] [stderr]    Compiling clang-sys v0.11.1
[INFO] [stderr]     Checking clang v0.14.1
[INFO] [stderr]     Checking crustacean v0.3.1 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0463]: can't find crate for `syntax`
[INFO] [stdout]   --> src/lib.rs:28:1
[INFO] [stdout]    |
[INFO] [stdout] 28 | extern crate syntax;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^ can't find crate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0463]: can't find crate for `syntax`
[INFO] [stdout]   --> src/lib.rs:28:1
[INFO] [stdout]    |
[INFO] [stdout] 28 | extern crate syntax;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^ can't find crate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `super::c`, `super::super::GeneratorOptions`
[INFO] [stdout]   --> src/ast/rust.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use super::c;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 22 | use super::super::{GeneratorOptions};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `super::c`, `super::super::GeneratorOptions`
[INFO] [stdout]   --> src/ast/rust.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use super::c;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 22 | use super::super::{GeneratorOptions};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:34:21
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |                     ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl<Item> IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:35:61
[INFO] [stdout]    |
[INFO] [stdout] 35 |     fn into_rust(self, options: &GeneratorOptions) -> Vec<P<Item>> {
[INFO] [stdout]    |                                                             ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl<Item> IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:79:15
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl IntoRust<StructField> for c::Field {
[INFO] [stdout]    |               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl<StructField> IntoRust<StructField> for c::Field {
[INFO] [stdout]    |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:80:55
[INFO] [stdout]    |
[INFO] [stdout] 80 |     fn into_rust(self, options: &GeneratorOptions) -> StructField {
[INFO] [stdout]    |                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:93:19
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |                   ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl<ImplItem> IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:94:59
[INFO] [stdout]    |
[INFO] [stdout] 94 |     fn into_rust(self, options: &GeneratorOptions) -> Vec<ImplItem> {
[INFO] [stdout]    |                                                           ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl<ImplItem> IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:117:15
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl IntoRust<ForeignItem> for c::Function {
[INFO] [stdout]     |               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl<ForeignItem> IntoRust<ForeignItem> for c::Function {
[INFO] [stdout]     |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:118:55
[INFO] [stdout]     |
[INFO] [stdout] 118 |     fn into_rust(self, options: &GeneratorOptions) -> ForeignItem {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:123:17
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl<FnDecl> IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:124:57
[INFO] [stdout]     |
[INFO] [stdout] 124 |     fn into_rust(self, options: &GeneratorOptions) -> P<FnDecl> {
[INFO] [stdout]     |                                                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl<FnDecl> IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl<Ty> IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:142:57
[INFO] [stdout]     |
[INFO] [stdout] 142 |     fn into_rust(self, options: &GeneratorOptions) -> P<Ty> {
[INFO] [stdout]     |                                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl<Ty> IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:147:15
[INFO] [stdout]     |
[INFO] [stdout] 147 | impl IntoRust<Arg> for c::Parameter {
[INFO] [stdout]     |               ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 147 | impl<Arg> IntoRust<Arg> for c::Parameter {
[INFO] [stdout]     |     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:148:55
[INFO] [stdout]     |
[INFO] [stdout] 148 |     fn into_rust(self, options: &GeneratorOptions) -> Arg {
[INFO] [stdout]     |                                                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:153:22
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:153:36
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:154:62
[INFO] [stdout]     |
[INFO] [stdout] 154 |     fn into_rust(self, options: &GeneratorOptions) -> (Vec<P<Item>>, Vec<P<Item>>) {
[INFO] [stdout]     |                                                              ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:154:76
[INFO] [stdout]     |
[INFO] [stdout] 154 |     fn into_rust(self, options: &GeneratorOptions) -> (Vec<P<Item>>, Vec<P<Item>>) {
[INFO] [stdout]     |                                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:172:30
[INFO] [stdout]     |
[INFO] [stdout] 172 |             let methods: Vec<ImplItem> = f.into_rust(options);
[INFO] [stdout]     |                              ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<ImplItem> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:182:17
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl<Ty> IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:183:57
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn into_rust(self, options: &GeneratorOptions) -> P<Ty> {
[INFO] [stdout]     |                                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl<Ty> IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:213:17
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl<Item> IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:214:57
[INFO] [stdout]     |
[INFO] [stdout] 214 |     fn into_rust(self, options: &GeneratorOptions) -> P<Item> {
[INFO] [stdout]     |                                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl<Item> IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:220:17
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl<Expr> IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:221:57
[INFO] [stdout]     |
[INFO] [stdout] 221 |     fn into_rust(self, options: &GeneratorOptions) -> P<Expr> {
[INFO] [stdout]     |                                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl<Expr> IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:33
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg<Ty>(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `PatKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:44
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                            ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:56
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:5
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |     ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pat` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:26
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                          ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:36
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:82
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                                                                                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:241:54
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>, Ty>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:241:72
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:247:40
[INFO] [stdout]     |
[INFO] [stdout] 247 | pub fn to_attribute(span: Span, value: MetaItem, doc: bool) -> Attribute {
[INFO] [stdout]     |                                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:247:64
[INFO] [stdout]     |
[INFO] [stdout] 247 | pub fn to_attribute(span: Span, value: MetaItem, doc: bool) -> Attribute {
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:248:5
[INFO] [stdout]     |
[INFO] [stdout] 248 |     Attribute {
[INFO] [stdout]     |     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:257:51
[INFO] [stdout]     |
[INFO] [stdout] 257 | pub fn to_attribute_doc(span: Span, doc: &str) -> Attribute {
[INFO] [stdout]     |                                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:266:6
[INFO] [stdout]     |
[INFO] [stdout] 266 | ) -> Attribute {
[INFO] [stdout]     |      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:274:40
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block<Stmt>(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:274:52
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                                                    ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block<Block>(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:275:17
[INFO] [stdout]     |
[INFO] [stdout] 275 |     let block = Block {
[INFO] [stdout]     |                 ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:277:13
[INFO] [stdout]     |
[INFO] [stdout] 277 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ExprKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:284:34
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |                                  ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:284:49
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr<Expr>(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |               ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:285:7
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |       ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:285:18
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:48
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:68
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of<Expr>(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:80
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                                                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of<Expr>(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:43
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:67
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                                                   ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:80
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                                                                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:296:60
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>, Expr>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:296:82
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>, Expr>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:300:40
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg<Expr>(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:300:52
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg<Expr>(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:304:39
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                                       ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:304:50
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path<Expr>(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LitKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:308:38
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                                      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:308:52
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit<Expr>(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:312:53
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub fn to_expr_lit_int(span: Span, value: u64) -> P<Expr> {
[INFO] [stdout]     |                                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub fn to_expr_lit_int<Expr>(span: Span, value: u64) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:31
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                               ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl<Arg>(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                  +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FunctionRetTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:45
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:81
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                                                                                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl<FnDecl>(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                  ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:317:7
[INFO] [stdout]     |
[INFO] [stdout] 317 |     P(FnDecl { inputs: inputs, output: output, variadic: variadic })
[INFO] [stdout]     |       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:320:67
[INFO] [stdout]     |
[INFO] [stdout] 320 | pub fn to_foreign_item<S: AsRef<str>>(span: Span, ident: S, node: ForeignItemKind) -> ForeignItem {
[INFO] [stdout]     |                                                                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:320:87
[INFO] [stdout]     |
[INFO] [stdout] 320 | pub fn to_foreign_item<S: AsRef<str>>(span: Span, ident: S, node: ForeignItemKind) -> ForeignItem {
[INFO] [stdout]     |                                                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:321:5
[INFO] [stdout]     |
[INFO] [stdout] 321 |     ForeignItem {
[INFO] [stdout]     |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:325:13
[INFO] [stdout]     |
[INFO] [stdout] 325 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:331:72
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                                                        ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>, FnDecl>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:331:84
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                                                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:335:45
[INFO] [stdout]     |
[INFO] [stdout] 335 | pub fn to_ident<S: AsRef<str>>(ident: S) -> Ident {
[INFO] [stdout]     |                                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:339:64
[INFO] [stdout]     |
[INFO] [stdout] 339 | pub fn to_impl_item<S: AsRef<str>>(span: Span, ident: S, node: ImplItemKind) -> ImplItem {
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:339:81
[INFO] [stdout]     |
[INFO] [stdout] 339 | pub fn to_impl_item<S: AsRef<str>>(span: Span, ident: S, node: ImplItemKind) -> ImplItem {
[INFO] [stdout]     |                                                                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 |     ImplItem {
[INFO] [stdout]     |     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:341:13
[INFO] [stdout]     |
[INFO] [stdout] 341 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:39
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:59
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                                           ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn to_impl_item_method<S: AsRef<str>, FnDecl>(
[INFO] [stdout]     |                                         ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:77
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                                                             ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn to_impl_item_method<S: AsRef<str>, Block>(
[INFO] [stdout]     |                                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:353:6
[INFO] [stdout]     |
[INFO] [stdout] 353 | ) -> ImplItem {
[INFO] [stdout]     |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MethodSig` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:359:15
[INFO] [stdout]     |
[INFO] [stdout] 359 |     let sig = MethodSig {
[INFO] [stdout]     |               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:370:33
[INFO] [stdout]     |
[INFO] [stdout] 370 |     span: Span, ident: S, node: ItemKind, attrs: Vec<Attribute>
[INFO] [stdout]     |                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:370:54
[INFO] [stdout]     |
[INFO] [stdout] 370 |     span: Span, ident: S, node: ItemKind, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                      ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub fn to_item<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                             +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:371:8
[INFO] [stdout]     |
[INFO] [stdout] 371 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub fn to_item<S: AsRef<str>, Item>(
[INFO] [stdout]     |                             ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:376:16
[INFO] [stdout]     |
[INFO] [stdout] 376 |     let item = Item {
[INFO] [stdout]     |                ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:379:13
[INFO] [stdout]     |
[INFO] [stdout] 379 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:387:69
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                                                     ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>, ImplItem>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                  ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:387:85
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                                                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:399:70
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                                                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                 ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:399:83
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                                                                   ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                 ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Mod` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:400:40
[INFO] [stdout]     |
[INFO] [stdout] 400 |     to_item(span, ident, ItemKind::Mod(Mod { inner: span, items: items }), vec![])
[INFO] [stdout]     |                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:404:39
[INFO] [stdout]     |
[INFO] [stdout] 404 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, StructField>(
[INFO] [stdout]     |                                    +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:404:64
[INFO] [stdout]     |
[INFO] [stdout] 404 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                                    +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:405:8
[INFO] [stdout]     |
[INFO] [stdout] 405 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, Item>(
[INFO] [stdout]     |                                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:406:44
[INFO] [stdout]     |
[INFO] [stdout] 406 |     let data = VariantData::Struct(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:411:39
[INFO] [stdout]     |
[INFO] [stdout] 411 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, StructField>(
[INFO] [stdout]     |                                          +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:411:64
[INFO] [stdout]     |
[INFO] [stdout] 411 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                                          +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:412:8
[INFO] [stdout]     |
[INFO] [stdout] 412 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, Item>(
[INFO] [stdout]     |                                          ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:413:43
[INFO] [stdout]     |
[INFO] [stdout] 413 |     let data = VariantData::Tuple(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:417:63
[INFO] [stdout]     |
[INFO] [stdout] 417 | pub fn to_meta_item<S: AsRef<str>>(span: Span, name: S, node: MetaItemKind) -> MetaItem {
[INFO] [stdout]     |                                                               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:417:80
[INFO] [stdout]     |
[INFO] [stdout] 417 | pub fn to_meta_item<S: AsRef<str>>(span: Span, name: S, node: MetaItemKind) -> MetaItem {
[INFO] [stdout]     |                                                                                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:418:5
[INFO] [stdout]     |
[INFO] [stdout] 418 |     MetaItem { name: Symbol::intern(name.as_ref()), node: node, span: span }
[INFO] [stdout]     |     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:421:76
[INFO] [stdout]     |
[INFO] [stdout] 421 | pub fn to_path<S: AsRef<str>>(span: Span, global: bool, segments: &[S]) -> Path {
[INFO] [stdout]     |                                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PathSegment` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:423:9
[INFO] [stdout]     |
[INFO] [stdout] 423 |         PathSegment { identifier: to_ident(s), parameters: PathParameters::none() }
[INFO] [stdout]     |         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:425:5
[INFO] [stdout]     |
[INFO] [stdout] 425 |     Path { span: span, global: global, segments: segments }
[INFO] [stdout]     |     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 15  + use c::Type::Path;
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:428:41
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option<Ty>(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                      ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:428:49
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AngleBracketedParameterData` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:430:16
[INFO] [stdout]     |
[INFO] [stdout] 430 |     let data = AngleBracketedParameterData {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:437:41
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr<Expr>(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:437:51
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                                                   ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:438:5
[INFO] [stdout]     |
[INFO] [stdout] 438 |     Stmt {
[INFO] [stdout]     |     ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:439:13
[INFO] [stdout]     |
[INFO] [stdout] 439 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:445:75
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                                                           ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>, Ty>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:445:83
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                                                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:446:5
[INFO] [stdout]     |
[INFO] [stdout] 446 |     StructField {
[INFO] [stdout]     |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:450:13
[INFO] [stdout]     |
[INFO] [stdout] 450 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TyKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:456:32
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |                                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:456:45
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |                                             ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty<Ty>(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |             ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:457:7
[INFO] [stdout]     |
[INFO] [stdout] 457 |     P(Ty { id: DUMMY_NODE_ID, node: node, span: span })
[INFO] [stdout]     |       ^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:457:16
[INFO] [stdout]     |
[INFO] [stdout] 457 |     P(Ty { id: DUMMY_NODE_ID, node: node, span: span })
[INFO] [stdout]     |                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:460:38
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array<Ty>(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:460:63
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                                                               ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array<Ty>(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:464:42
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                                          ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn<FnDecl>(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:464:56
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                                                        ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn<Ty>(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BareFnTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:465:15
[INFO] [stdout]     |
[INFO] [stdout] 465 |     let fn_ = BareFnTy { unsafety: Unsafety::Normal, abi: Abi::C, lifetimes: vec![], decl: decl };
[INFO] [stdout]     |               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:469:81
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub fn to_ty_path<S: AsRef<str>>(span: Span, global: bool, segments: &[S]) -> P<Ty> {
[INFO] [stdout]     |                                                                                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub fn to_ty_path<S: AsRef<str>, Ty>(span: Span, global: bool, segments: &[S]) -> P<Ty> {
[INFO] [stdout]     |                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:42
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:60
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                                            ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr<Ty>(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:70
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr<Ty>(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MutTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:474:29
[INFO] [stdout]     |
[INFO] [stdout] 474 |     to_ty(span, TyKind::Ptr(MutTy { ty: ty, mutbl: mutability }))
[INFO] [stdout]     |                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mod` in this scope
[INFO] [stdout]    --> src/lib.rs:213:42
[INFO] [stdout]     |
[INFO] [stdout] 213 |     pub fn generate(&mut self) -> Result<Mod, String> {
[INFO] [stdout]     |                                          ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 109 | impl<Mod> Generator {
[INFO] [stdout]     |     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Mod` in this scope
[INFO] [stdout]    --> src/lib.rs:247:12
[INFO] [stdout]     |
[INFO] [stdout] 247 |         Ok(Mod { inner: self.options.span, items: opaque })
[INFO] [stdout]     |            ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:311:84
[INFO] [stdout]     |
[INFO] [stdout] 311 | fn generate_typedefs(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                                                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 311 | fn generate_typedefs<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:324:81
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn generate_enums(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                                                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn generate_enums<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:338:77
[INFO] [stdout]     |
[INFO] [stdout] 338 |     options: &GeneratorOptions, tus: &[TranslationUnit], nested: &mut Vec<P<Item>>
[INFO] [stdout]     |                                                                             ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn generate_records<Item>(
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:339:12
[INFO] [stdout]     |
[INFO] [stdout] 339 | ) -> Vec<P<Item>> {
[INFO] [stdout]     |            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn generate_records<Item>(
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:359:88
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                                                                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                      ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/lib.rs:374:26
[INFO] [stdout]     |
[INFO] [stdout] 374 |         }).collect::<Vec<ForeignItem>>();
[INFO] [stdout]     |                          ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions<ForeignItem>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                      +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForeignMod` in this scope
[INFO] [stdout]    --> src/lib.rs:376:46
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let functions = ItemKind::ForeignMod(ForeignMod { abi: Abi::C, items: functions });
[INFO] [stdout]     |                                              ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:381:17
[INFO] [stdout]     |
[INFO] [stdout] 381 | fn is_ty(item: &Item) -> bool {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `clang` is imported redundantly
[INFO] [stdout]   --> src/ast/c.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 | use clang::{self, Entity, EntityKind, TypeKind};
[INFO] [stdout]    |             ^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/lib.rs:25:1
[INFO] [stdout]    |
[INFO] [stdout] 25 | extern crate clang;
[INFO] [stdout]    | ------------------- the item `clang` is already imported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:220:21
[INFO] [stdout]     |
[INFO] [stdout] 220 |         let clang = try!(Clang::new().map_err(|_| "called from multiple threads simultaneously"));
[INFO] [stdout]     |                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:225:22
[INFO] [stdout]     |
[INFO] [stdout] 225 |             tus.push(try!(index.parser(header).arguments(&arguments[..]).parse()));
[INFO] [stdout]     |                      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:34:21
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |                     ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl<Item> IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:35:61
[INFO] [stdout]    |
[INFO] [stdout] 35 |     fn into_rust(self, options: &GeneratorOptions) -> Vec<P<Item>> {
[INFO] [stdout]    |                                                             ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl<Item> IntoRust<Vec<P<Item>>> for c::Enum {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:79:15
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl IntoRust<StructField> for c::Field {
[INFO] [stdout]    |               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl<StructField> IntoRust<StructField> for c::Field {
[INFO] [stdout]    |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:80:55
[INFO] [stdout]    |
[INFO] [stdout] 80 |     fn into_rust(self, options: &GeneratorOptions) -> StructField {
[INFO] [stdout]    |                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:93:19
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |                   ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl<ImplItem> IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]   --> src/ast/rust.rs:94:59
[INFO] [stdout]    |
[INFO] [stdout] 94 |     fn into_rust(self, options: &GeneratorOptions) -> Vec<ImplItem> {
[INFO] [stdout]    |                                                           ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 93 | impl<ImplItem> IntoRust<Vec<ImplItem>> for c::Field {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:117:15
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl IntoRust<ForeignItem> for c::Function {
[INFO] [stdout]     |               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 117 | impl<ForeignItem> IntoRust<ForeignItem> for c::Function {
[INFO] [stdout]     |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:118:55
[INFO] [stdout]     |
[INFO] [stdout] 118 |     fn into_rust(self, options: &GeneratorOptions) -> ForeignItem {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:123:17
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl<FnDecl> IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:124:57
[INFO] [stdout]     |
[INFO] [stdout] 124 |     fn into_rust(self, options: &GeneratorOptions) -> P<FnDecl> {
[INFO] [stdout]     |                                                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 123 | impl<FnDecl> IntoRust<P<FnDecl>> for c::Function {
[INFO] [stdout]     |     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl<Ty> IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:142:57
[INFO] [stdout]     |
[INFO] [stdout] 142 |     fn into_rust(self, options: &GeneratorOptions) -> P<Ty> {
[INFO] [stdout]     |                                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 141 | impl<Ty> IntoRust<P<Ty>> for c::Function {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:147:15
[INFO] [stdout]     |
[INFO] [stdout] 147 | impl IntoRust<Arg> for c::Parameter {
[INFO] [stdout]     |               ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 147 | impl<Arg> IntoRust<Arg> for c::Parameter {
[INFO] [stdout]     |     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:148:55
[INFO] [stdout]     |
[INFO] [stdout] 148 |     fn into_rust(self, options: &GeneratorOptions) -> Arg {
[INFO] [stdout]     |                                                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:153:22
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:153:36
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:154:62
[INFO] [stdout]     |
[INFO] [stdout] 154 |     fn into_rust(self, options: &GeneratorOptions) -> (Vec<P<Item>>, Vec<P<Item>>) {
[INFO] [stdout]     |                                                              ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:154:76
[INFO] [stdout]     |
[INFO] [stdout] 154 |     fn into_rust(self, options: &GeneratorOptions) -> (Vec<P<Item>>, Vec<P<Item>>) {
[INFO] [stdout]     |                                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<Item> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:172:30
[INFO] [stdout]     |
[INFO] [stdout] 172 |             let methods: Vec<ImplItem> = f.into_rust(options);
[INFO] [stdout]     |                              ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<ImplItem> IntoRust<(Vec<P<Item>>, Vec<P<Item>>)> for c::Record {
[INFO] [stdout]     |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:182:17
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl<Ty> IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:183:57
[INFO] [stdout]     |
[INFO] [stdout] 183 |     fn into_rust(self, options: &GeneratorOptions) -> P<Ty> {
[INFO] [stdout]     |                                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl<Ty> IntoRust<P<Ty>> for c::Type {
[INFO] [stdout]     |     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:213:17
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl<Item> IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:214:57
[INFO] [stdout]     |
[INFO] [stdout] 214 |     fn into_rust(self, options: &GeneratorOptions) -> P<Item> {
[INFO] [stdout]     |                                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 213 | impl<Item> IntoRust<P<Item>> for c::Typedef {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:220:17
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl<Expr> IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:221:57
[INFO] [stdout]     |
[INFO] [stdout] 221 |     fn into_rust(self, options: &GeneratorOptions) -> P<Expr> {
[INFO] [stdout]     |                                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 220 | impl<Expr> IntoRust<P<Expr>> for c::Variant {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:33
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg<Ty>(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `PatKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:44
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                            ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:237:56
[INFO] [stdout]     |
[INFO] [stdout] 237 | pub fn to_arg(span: Span, ty: P<Ty>, node: PatKind) -> Arg {
[INFO] [stdout]     |                                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:5
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |     ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Pat` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:26
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                          ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:36
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:238:82
[INFO] [stdout]     |
[INFO] [stdout] 238 |     Arg { ty: ty, pat: P(Pat { id: DUMMY_NODE_ID, node: node, span: span }), id: DUMMY_NODE_ID }
[INFO] [stdout]     |                                                                                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:241:54
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>, Ty>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:241:72
[INFO] [stdout]     |
[INFO] [stdout] 241 | pub fn to_arg_ident<S: AsRef<str>>(span: Span, ty: P<Ty>, ident: S) -> Arg {
[INFO] [stdout]     |                                                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:247:40
[INFO] [stdout]     |
[INFO] [stdout] 247 | pub fn to_attribute(span: Span, value: MetaItem, doc: bool) -> Attribute {
[INFO] [stdout]     |                                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:247:64
[INFO] [stdout]     |
[INFO] [stdout] 247 | pub fn to_attribute(span: Span, value: MetaItem, doc: bool) -> Attribute {
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:248:5
[INFO] [stdout]     |
[INFO] [stdout] 248 |     Attribute {
[INFO] [stdout]     |     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:257:51
[INFO] [stdout]     |
[INFO] [stdout] 257 | pub fn to_attribute_doc(span: Span, doc: &str) -> Attribute {
[INFO] [stdout]     |                                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:266:6
[INFO] [stdout]     |
[INFO] [stdout] 266 | ) -> Attribute {
[INFO] [stdout]     |      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:274:40
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block<Stmt>(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:274:52
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                                                    ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 274 | pub fn to_block<Block>(span: Span, stmts: Vec<Stmt>) -> P<Block> {
[INFO] [stdout]     |                +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:275:17
[INFO] [stdout]     |
[INFO] [stdout] 275 |     let block = Block {
[INFO] [stdout]     |                 ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:277:13
[INFO] [stdout]     |
[INFO] [stdout] 277 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ExprKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:284:34
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |                                  ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:284:49
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 284 | pub fn to_expr<Expr>(span: Span, node: ExprKind) -> P<Expr> {
[INFO] [stdout]     |               ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:285:7
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |       ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:285:18
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:48
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:68
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of<Expr>(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:288:80
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                                                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 288 | pub fn to_expr_addr_of<Expr>(span: Span, mutability: Mutability, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:43
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:67
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                                                   ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:292:80
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                                                                                ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 292 | pub fn to_expr_call<Expr>(span: Span, callee: P<Expr>, arguments: Vec<P<Expr>>) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:296:60
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>, Expr>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:296:82
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 296 | pub fn to_expr_field<S: AsRef<str>, Expr>(span: Span, struct_: P<Expr>, ident: S) -> P<Expr> {
[INFO] [stdout]     |                                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:300:40
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg<Expr>(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:300:52
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub fn to_expr_neg<Expr>(span: Span, expr: P<Expr>) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:304:39
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                                       ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:304:50
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                                                  ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 304 | pub fn to_expr_path<Expr>(span: Span, path: Path) -> P<Expr> {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `LitKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:308:38
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                                      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:308:52
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub fn to_expr_lit<Expr>(span: Span, node: LitKind) -> P<Expr> {
[INFO] [stdout]     |                   ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:312:53
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub fn to_expr_lit_int(span: Span, value: u64) -> P<Expr> {
[INFO] [stdout]     |                                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub fn to_expr_lit_int<Expr>(span: Span, value: u64) -> P<Expr> {
[INFO] [stdout]     |                       ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Arg` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:31
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                               ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl<Arg>(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                  +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FunctionRetTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:45
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:316:81
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                                                                                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 316 | pub fn to_fn_decl<FnDecl>(inputs: Vec<Arg>, output: FunctionRetTy, variadic: bool) -> P<FnDecl> {
[INFO] [stdout]     |                  ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:317:7
[INFO] [stdout]     |
[INFO] [stdout] 317 |     P(FnDecl { inputs: inputs, output: output, variadic: variadic })
[INFO] [stdout]     |       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:320:67
[INFO] [stdout]     |
[INFO] [stdout] 320 | pub fn to_foreign_item<S: AsRef<str>>(span: Span, ident: S, node: ForeignItemKind) -> ForeignItem {
[INFO] [stdout]     |                                                                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:320:87
[INFO] [stdout]     |
[INFO] [stdout] 320 | pub fn to_foreign_item<S: AsRef<str>>(span: Span, ident: S, node: ForeignItemKind) -> ForeignItem {
[INFO] [stdout]     |                                                                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:321:5
[INFO] [stdout]     |
[INFO] [stdout] 321 |     ForeignItem {
[INFO] [stdout]     |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:325:13
[INFO] [stdout]     |
[INFO] [stdout] 325 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:331:72
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                                                        ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>, FnDecl>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:331:84
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub fn to_foreign_item_fn<S: AsRef<str>>(span: Span, ident: S, decl: P<FnDecl>) -> ForeignItem {
[INFO] [stdout]     |                                                                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:335:45
[INFO] [stdout]     |
[INFO] [stdout] 335 | pub fn to_ident<S: AsRef<str>>(ident: S) -> Ident {
[INFO] [stdout]     |                                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:339:64
[INFO] [stdout]     |
[INFO] [stdout] 339 | pub fn to_impl_item<S: AsRef<str>>(span: Span, ident: S, node: ImplItemKind) -> ImplItem {
[INFO] [stdout]     |                                                                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:339:81
[INFO] [stdout]     |
[INFO] [stdout] 339 | pub fn to_impl_item<S: AsRef<str>>(span: Span, ident: S, node: ImplItemKind) -> ImplItem {
[INFO] [stdout]     |                                                                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:340:5
[INFO] [stdout]     |
[INFO] [stdout] 340 |     ImplItem {
[INFO] [stdout]     |     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:341:13
[INFO] [stdout]     |
[INFO] [stdout] 341 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:39
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:59
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                                           ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn to_impl_item_method<S: AsRef<str>, FnDecl>(
[INFO] [stdout]     |                                         ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Block` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:352:77
[INFO] [stdout]     |
[INFO] [stdout] 352 |     span: Span, ident: S, mutability: Mutability, decl: P<FnDecl>, block: P<Block>
[INFO] [stdout]     |                                                                             ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn to_impl_item_method<S: AsRef<str>, Block>(
[INFO] [stdout]     |                                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:353:6
[INFO] [stdout]     |
[INFO] [stdout] 353 | ) -> ImplItem {
[INFO] [stdout]     |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MethodSig` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:359:15
[INFO] [stdout]     |
[INFO] [stdout] 359 |     let sig = MethodSig {
[INFO] [stdout]     |               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:370:33
[INFO] [stdout]     |
[INFO] [stdout] 370 |     span: Span, ident: S, node: ItemKind, attrs: Vec<Attribute>
[INFO] [stdout]     |                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:370:54
[INFO] [stdout]     |
[INFO] [stdout] 370 |     span: Span, ident: S, node: ItemKind, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                      ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub fn to_item<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                             +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:371:8
[INFO] [stdout]     |
[INFO] [stdout] 371 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 369 | pub fn to_item<S: AsRef<str>, Item>(
[INFO] [stdout]     |                             ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:376:16
[INFO] [stdout]     |
[INFO] [stdout] 376 |     let item = Item {
[INFO] [stdout]     |                ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:379:13
[INFO] [stdout]     |
[INFO] [stdout] 379 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ImplItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:387:69
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                                                     ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>, ImplItem>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                  ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:387:85
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                                                                     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 387 | pub fn to_item_impl<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<ImplItem>) -> P<Item> {
[INFO] [stdout]     |                                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:399:70
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                                                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                 ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:399:83
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                                                                   ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 399 | pub fn to_item_mod<S: AsRef<str>, Item>(span: Span, ident: S, items: Vec<P<Item>>) -> P<Item> {
[INFO] [stdout]     |                                 ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Mod` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:400:40
[INFO] [stdout]     |
[INFO] [stdout] 400 |     to_item(span, ident, ItemKind::Mod(Mod { inner: span, items: items }), vec![])
[INFO] [stdout]     |                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:404:39
[INFO] [stdout]     |
[INFO] [stdout] 404 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, StructField>(
[INFO] [stdout]     |                                    +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:404:64
[INFO] [stdout]     |
[INFO] [stdout] 404 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                                    +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:405:8
[INFO] [stdout]     |
[INFO] [stdout] 405 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 403 | pub fn to_item_struct<S: AsRef<str>, Item>(
[INFO] [stdout]     |                                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:406:44
[INFO] [stdout]     |
[INFO] [stdout] 406 |     let data = VariantData::Struct(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:411:39
[INFO] [stdout]     |
[INFO] [stdout] 411 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, StructField>(
[INFO] [stdout]     |                                          +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:411:64
[INFO] [stdout]     |
[INFO] [stdout] 411 |     span: Span, ident: S, fields: Vec<StructField>, attrs: Vec<Attribute>
[INFO] [stdout]     |                                                                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, Attribute>(
[INFO] [stdout]     |                                          +++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:412:8
[INFO] [stdout]     |
[INFO] [stdout] 412 | ) -> P<Item> {
[INFO] [stdout]     |        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 410 | pub fn to_item_tuple_struct<S: AsRef<str>, Item>(
[INFO] [stdout]     |                                          ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:413:43
[INFO] [stdout]     |
[INFO] [stdout] 413 |     let data = VariantData::Tuple(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItemKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:417:63
[INFO] [stdout]     |
[INFO] [stdout] 417 | pub fn to_meta_item<S: AsRef<str>>(span: Span, name: S, node: MetaItemKind) -> MetaItem {
[INFO] [stdout]     |                                                               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:417:80
[INFO] [stdout]     |
[INFO] [stdout] 417 | pub fn to_meta_item<S: AsRef<str>>(span: Span, name: S, node: MetaItemKind) -> MetaItem {
[INFO] [stdout]     |                                                                                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MetaItem` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:418:5
[INFO] [stdout]     |
[INFO] [stdout] 418 |     MetaItem { name: Symbol::intern(name.as_ref()), node: node, span: span }
[INFO] [stdout]     |     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:421:76
[INFO] [stdout]     |
[INFO] [stdout] 421 | pub fn to_path<S: AsRef<str>>(span: Span, global: bool, segments: &[S]) -> Path {
[INFO] [stdout]     |                                                                            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PathSegment` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:423:9
[INFO] [stdout]     |
[INFO] [stdout] 423 |         PathSegment { identifier: to_ident(s), parameters: PathParameters::none() }
[INFO] [stdout]     |         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:425:5
[INFO] [stdout]     |
[INFO] [stdout] 425 |     Path { span: span, global: global, segments: segments }
[INFO] [stdout]     |     ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 15  + use c::Type::Path;
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:428:41
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                                         ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option<Ty>(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                      ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Path` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:428:49
[INFO] [stdout]     |
[INFO] [stdout] 428 | pub fn to_path_option(span: Span, ty: P<Ty>) -> Path {
[INFO] [stdout]     |                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 15  + use std::path::Path;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AngleBracketedParameterData` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:430:16
[INFO] [stdout]     |
[INFO] [stdout] 430 |     let data = AngleBracketedParameterData {
[INFO] [stdout]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:437:41
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                                         ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr<Expr>(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:437:51
[INFO] [stdout]     |
[INFO] [stdout] 437 | pub fn to_stmt_expr(span: Span, expr: P<Expr>) -> Stmt {
[INFO] [stdout]     |                                                   ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Stmt` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:438:5
[INFO] [stdout]     |
[INFO] [stdout] 438 |     Stmt {
[INFO] [stdout]     |     ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:439:13
[INFO] [stdout]     |
[INFO] [stdout] 439 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:445:75
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                                                           ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>, Ty>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:445:83
[INFO] [stdout]     |
[INFO] [stdout] 445 | pub fn to_struct_field<S: AsRef<str>>(span: Span, ident: Option<S>, ty: P<Ty>) -> StructField {
[INFO] [stdout]     |                                                                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `StructField` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:446:5
[INFO] [stdout]     |
[INFO] [stdout] 446 |     StructField {
[INFO] [stdout]     |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:450:13
[INFO] [stdout]     |
[INFO] [stdout] 450 |         id: DUMMY_NODE_ID,
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `TyKind` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:456:32
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |                                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:456:45
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |                                             ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 456 | pub fn to_ty<Ty>(span: Span, node: TyKind) -> P<Ty> {
[INFO] [stdout]     |             ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:457:7
[INFO] [stdout]     |
[INFO] [stdout] 457 |     P(Ty { id: DUMMY_NODE_ID, node: node, span: span })
[INFO] [stdout]     |       ^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DUMMY_NODE_ID` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:457:16
[INFO] [stdout]     |
[INFO] [stdout] 457 |     P(Ty { id: DUMMY_NODE_ID, node: node, span: span })
[INFO] [stdout]     |                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:460:38
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array<Ty>(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:460:63
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                                                               ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 460 | pub fn to_ty_array<Ty>(span: Span, ty: P<Ty>, length: usize) -> P<Ty> {
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:464:42
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                                          ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn<FnDecl>(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:464:56
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                                                        ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 464 | pub fn to_ty_bare_fn<Ty>(span: Span, decl: P<FnDecl>) -> P<Ty> {
[INFO] [stdout]     |                     ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `BareFnTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:465:15
[INFO] [stdout]     |
[INFO] [stdout] 465 |     let fn_ = BareFnTy { unsafety: Unsafety::Normal, abi: Abi::C, lifetimes: vec![], decl: decl };
[INFO] [stdout]     |               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:469:81
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub fn to_ty_path<S: AsRef<str>>(span: Span, global: bool, segments: &[S]) -> P<Ty> {
[INFO] [stdout]     |                                                                                 ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub fn to_ty_path<S: AsRef<str>, Ty>(span: Span, global: bool, segments: &[S]) -> P<Ty> {
[INFO] [stdout]     |                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutability` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:42
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:60
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                                            ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr<Ty>(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:473:70
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                                                                      ^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 473 | pub fn to_ty_ptr<Ty>(span: Span, mutability: Mutability, ty: P<Ty>) -> P<Ty> {
[INFO] [stdout]     |                 ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MutTy` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:474:29
[INFO] [stdout]     |
[INFO] [stdout] 474 |     to_ty(span, TyKind::Ptr(MutTy { ty: ty, mutbl: mutability }))
[INFO] [stdout]     |                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mod` in this scope
[INFO] [stdout]    --> src/lib.rs:213:42
[INFO] [stdout]     |
[INFO] [stdout] 213 |     pub fn generate(&mut self) -> Result<Mod, String> {
[INFO] [stdout]     |                                          ^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 109 | impl<Mod> Generator {
[INFO] [stdout]     |     +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Mod` in this scope
[INFO] [stdout]    --> src/lib.rs:247:12
[INFO] [stdout]     |
[INFO] [stdout] 247 |         Ok(Mod { inner: self.options.span, items: opaque })
[INFO] [stdout]     |            ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:311:84
[INFO] [stdout]     |
[INFO] [stdout] 311 | fn generate_typedefs(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                                                                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 311 | fn generate_typedefs<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:324:81
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn generate_enums(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                                                                                 ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn generate_enums<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Vec<P<Item>> {
[INFO] [stdout]     |                  ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:338:77
[INFO] [stdout]     |
[INFO] [stdout] 338 |     options: &GeneratorOptions, tus: &[TranslationUnit], nested: &mut Vec<P<Item>>
[INFO] [stdout]     |                                                                             ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn generate_records<Item>(
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:339:12
[INFO] [stdout]     |
[INFO] [stdout] 339 | ) -> Vec<P<Item>> {
[INFO] [stdout]     |            ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn generate_records<Item>(
[INFO] [stdout]     |                    ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:359:88
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                                                                                        ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions<Item>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                      ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ForeignItem` in this scope
[INFO] [stdout]    --> src/lib.rs:374:26
[INFO] [stdout]     |
[INFO] [stdout] 374 |         }).collect::<Vec<ForeignItem>>();
[INFO] [stdout]     |                          ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 359 | fn generate_functions<ForeignItem>(options: &GeneratorOptions, tus: &[TranslationUnit]) -> Option<P<Item>> {
[INFO] [stdout]     |                      +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForeignMod` in this scope
[INFO] [stdout]    --> src/lib.rs:376:46
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let functions = ItemKind::ForeignMod(ForeignMod { abi: Abi::C, items: functions });
[INFO] [stdout]     |                                              ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Item` in this scope
[INFO] [stdout]    --> src/lib.rs:381:17
[INFO] [stdout]     |
[INFO] [stdout] 381 | fn is_ty(item: &Item) -> bool {
[INFO] [stdout]     |                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `clang` is imported redundantly
[INFO] [stdout]   --> src/ast/c.rs:18:13
[INFO] [stdout]    |
[INFO] [stdout] 18 | use clang::{self, Entity, EntityKind, TypeKind};
[INFO] [stdout]    |             ^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/lib.rs:25:1
[INFO] [stdout]    |
[INFO] [stdout] 25 | extern crate clang;
[INFO] [stdout]    | ------------------- the item `clang` is already imported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:220:21
[INFO] [stdout]     |
[INFO] [stdout] 220 |         let clang = try!(Clang::new().map_err(|_| "called from multiple threads simultaneously"));
[INFO] [stdout]     |                     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:225:22
[INFO] [stdout]     |
[INFO] [stdout] 225 |             tus.push(try!(index.parser(header).arguments(&arguments[..]).parse()));
[INFO] [stdout]     |                      ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]   --> src/ast/rust.rs:37:54
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let int = c::Type::Primitive("c_int".into()).into_rust(options);
[INFO] [stdout]    |                                                      ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/ast/c.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub enum Type {
[INFO] [stdout]    | ------------- method `into_rust` not found for this enum
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]   --> src/ast/rust.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait IntoRust<T> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Variant` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:63:36
[INFO] [stdout]     |
[INFO] [stdout] 63  |             let mut disr = variant.into_rust(options);
[INFO] [stdout]     |                                    ^^^^^^^^^ method not found in `Variant`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:487:1
[INFO] [stdout]     |
[INFO] [stdout] 487 | pub struct Variant {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]   --> src/ast/rust.rs:65:24
[INFO] [stdout]    |
[INFO] [stdout] 65 |             let node = ItemKind::Const(ty.clone(), disr);
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]   --> src/ast/rust.rs:37:54
[INFO] [stdout]    |
[INFO] [stdout] 37 |         let int = c::Type::Primitive("c_int".into()).into_rust(options);
[INFO] [stdout]    |                                                      ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/ast/c.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub enum Type {
[INFO] [stdout]    | ------------- method `into_rust` not found for this enum
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]   --> src/ast/rust.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait IntoRust<T> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]   --> src/ast/rust.rs:83:70
[INFO] [stdout]    |
[INFO] [stdout] 83 |                 to_struct_field(options.span, Some(self.name), type_.into_rust(options)),
[INFO] [stdout]    |                                                                      ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/ast/c.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub enum Type {
[INFO] [stdout]    | ------------- method `into_rust` not found for this enum
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]   --> src/ast/rust.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait IntoRust<T> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:103:46
[INFO] [stdout]     |
[INFO] [stdout] 103 |             let ty = to_ty_ptr(options.span, Mutability::Mutable,t.into_rust(options));
[INFO] [stdout]     |                                              ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Variant` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:63:36
[INFO] [stdout]     |
[INFO] [stdout] 63  |             let mut disr = variant.into_rust(options);
[INFO] [stdout]     |                                    ^^^^^^^^^ method not found in `Variant`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:487:1
[INFO] [stdout]     |
[INFO] [stdout] 487 | pub struct Variant {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]   --> src/ast/rust.rs:65:24
[INFO] [stdout]    |
[INFO] [stdout] 65 |             let node = ItemKind::Const(ty.clone(), disr);
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]   --> src/ast/rust.rs:83:70
[INFO] [stdout]    |
[INFO] [stdout] 83 |                 to_struct_field(options.span, Some(self.name), type_.into_rust(options)),
[INFO] [stdout]    |                                                                      ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/ast/c.rs:57:1
[INFO] [stdout]    |
[INFO] [stdout] 57 | pub enum Type {
[INFO] [stdout]    | ------------- method `into_rust` not found for this enum
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]   --> src/ast/rust.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub trait IntoRust<T> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:103:46
[INFO] [stdout]     |
[INFO] [stdout] 103 |             let ty = to_ty_ptr(options.span, Mutability::Mutable,t.into_rust(options));
[INFO] [stdout]     |                                              ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:103:68
[INFO] [stdout]     |
[INFO] [stdout] 103 |             let ty = to_ty_ptr(options.span, Mutability::Mutable,t.into_rust(options));
[INFO] [stdout]     |                                                                    ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:104:43
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let decl = to_fn_decl(vec![], FunctionRetTy::Ty(ty), false);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:108:55
[INFO] [stdout]     |
[INFO] [stdout] 108 |             let field = to_expr_addr_of(options.span, Mutability::Mutable, field);
[INFO] [stdout]     |                                                       ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:112:55
[INFO] [stdout]     |
[INFO] [stdout] 112 |             Some(to_impl_item_method(options.span, n, Mutability::Mutable, decl, block))
[INFO] [stdout]     |                                                       ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:103:68
[INFO] [stdout]     |
[INFO] [stdout] 103 |             let ty = to_ty_ptr(options.span, Mutability::Mutable,t.into_rust(options));
[INFO] [stdout]     |                                                                    ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:104:43
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let decl = to_fn_decl(vec![], FunctionRetTy::Ty(ty), false);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:108:55
[INFO] [stdout]     |
[INFO] [stdout] 108 |             let field = to_expr_addr_of(options.span, Mutability::Mutable, field);
[INFO] [stdout]     |                                                       ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:112:55
[INFO] [stdout]     |
[INFO] [stdout] 112 |             Some(to_impl_item_method(options.span, n, Mutability::Mutable, decl, block))
[INFO] [stdout]     |                                                       ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:119:66
[INFO] [stdout]     |
[INFO] [stdout] 119 |         to_foreign_item_fn(options.span, self.name.clone(), self.into_rust(options))
[INFO] [stdout]     |                                                                  ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:119:66
[INFO] [stdout]     |
[INFO] [stdout] 119 |         to_foreign_item_fn(options.span, self.name.clone(), self.into_rust(options))
[INFO] [stdout]     |                                                                  ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Parameter` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:125:60
[INFO] [stdout]     |
[INFO] [stdout] 125 |         let inputs = self.parameters.into_iter().map(|p| p.into_rust(options)).collect();
[INFO] [stdout]     |                                                            ^^^^^^^^^ method not found in `Parameter`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:297:1
[INFO] [stdout]     |
[INFO] [stdout] 297 | pub struct Parameter {
[INFO] [stdout]     | -------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:127:13
[INFO] [stdout]     |
[INFO] [stdout] 127 |             FunctionRetTy::Default(options.span)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:130:17
[INFO] [stdout]     |
[INFO] [stdout] 130 |                 FunctionRetTy::Default(options.span)
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:135:13
[INFO] [stdout]     |
[INFO] [stdout] 135 |             FunctionRetTy::Ty(self.result.into_rust(options))
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Parameter` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:125:60
[INFO] [stdout]     |
[INFO] [stdout] 125 |         let inputs = self.parameters.into_iter().map(|p| p.into_rust(options)).collect();
[INFO] [stdout]     |                                                            ^^^^^^^^^ method not found in `Parameter`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:297:1
[INFO] [stdout]     |
[INFO] [stdout] 297 | pub struct Parameter {
[INFO] [stdout]     | -------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:127:13
[INFO] [stdout]     |
[INFO] [stdout] 127 |             FunctionRetTy::Default(options.span)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:130:17
[INFO] [stdout]     |
[INFO] [stdout] 130 |                 FunctionRetTy::Default(options.span)
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionRetTy`
[INFO] [stdout]    --> src/ast/rust.rs:135:13
[INFO] [stdout]     |
[INFO] [stdout] 135 |             FunctionRetTy::Ty(self.result.into_rust(options))
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:135:43
[INFO] [stdout]     |
[INFO] [stdout] 135 |             FunctionRetTy::Ty(self.result.into_rust(options))
[INFO] [stdout]     |                                           ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:143:42
[INFO] [stdout]     |
[INFO] [stdout] 143 |         to_ty_bare_fn(options.span, self.into_rust(options))
[INFO] [stdout]     |                                          ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:135:43
[INFO] [stdout]     |
[INFO] [stdout] 135 |             FunctionRetTy::Ty(self.result.into_rust(options))
[INFO] [stdout]     |                                           ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:149:47
[INFO] [stdout]     |
[INFO] [stdout] 149 |         to_arg_ident(options.span, self.type_.into_rust(options), self.name)
[INFO] [stdout]     |                                               ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:143:42
[INFO] [stdout]     |
[INFO] [stdout] 143 |         to_ty_bare_fn(options.span, self.into_rust(options))
[INFO] [stdout]     |                                          ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Enum` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:157:33
[INFO] [stdout]     |
[INFO] [stdout] 157 |             nested.extend(enum_.into_rust(options).into_iter());
[INFO] [stdout]     |                                 ^^^^^^^^^ method not found in `Enum`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:220:1
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub struct Enum {
[INFO] [stdout]     | --------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:149:47
[INFO] [stdout]     |
[INFO] [stdout] 149 |         to_arg_ident(options.span, self.type_.into_rust(options), self.name)
[INFO] [stdout]     |                                               ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Record` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:160:45
[INFO] [stdout]     |
[INFO] [stdout] 160 |             let (subnested, items) = record.into_rust(options);
[INFO] [stdout]     |                                             ^^^^^^^^^ method not found in `Record`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:313:1
[INFO] [stdout]     |
[INFO] [stdout] 313 | pub struct Record {
[INFO] [stdout]     | ----------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Enum` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:157:33
[INFO] [stdout]     |
[INFO] [stdout] 157 |             nested.extend(enum_.into_rust(options).into_iter());
[INFO] [stdout]     |                                 ^^^^^^^^^ method not found in `Enum`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:220:1
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub struct Enum {
[INFO] [stdout]     | --------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Field` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:164:64
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let fields = self.fields.clone().into_iter().map(|f| f.into_rust(options)).collect();
[INFO] [stdout]     |                                                                ^^^^^^^^^ method not found in `Field`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub struct Field {
[INFO] [stdout]     | ---------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Record` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:160:45
[INFO] [stdout]     |
[INFO] [stdout] 160 |             let (subnested, items) = record.into_rust(options);
[INFO] [stdout]     |                                             ^^^^^^^^^ method not found in `Record`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:313:1
[INFO] [stdout]     |
[INFO] [stdout] 313 | pub struct Record {
[INFO] [stdout]     | ----------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Field` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:172:44
[INFO] [stdout]     |
[INFO] [stdout] 172 |             let methods: Vec<ImplItem> = f.into_rust(options);
[INFO] [stdout]     |                                            ^^^^^^^^^ method not found in `Field`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub struct Field {
[INFO] [stdout]     | ---------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<ast::c::Type>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:186:51
[INFO] [stdout]     |
[INFO] [stdout] 186 |                 to_ty_array(options.span, element.into_rust(options), size),
[INFO] [stdout]     |                                                   ^^^^^^^^^ method not found in `Box<Type>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Field` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:164:64
[INFO] [stdout]     |
[INFO] [stdout] 164 |         let fields = self.fields.clone().into_iter().map(|f| f.into_rust(options)).collect();
[INFO] [stdout]     |                                                                ^^^^^^^^^ method not found in `Field`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub struct Field {
[INFO] [stdout]     | ---------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<Function>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:190:66
[INFO] [stdout]     |
[INFO] [stdout] 190 |                 let path = to_path_option(options.span, function.into_rust(options));
[INFO] [stdout]     |                                                                  ^^^^^^^^^ method not found in `Box<Function>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:191:37
[INFO] [stdout]     |
[INFO] [stdout] 191 |                 to_ty(options.span, TyKind::Path(None, path))
[INFO] [stdout]     |                                     ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Field` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:172:44
[INFO] [stdout]     |
[INFO] [stdout] 172 |             let methods: Vec<ImplItem> = f.into_rust(options);
[INFO] [stdout]     |                                            ^^^^^^^^^ method not found in `Field`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | pub struct Field {
[INFO] [stdout]     | ---------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<ast::c::Type>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:197:61
[INFO] [stdout]     |
[INFO] [stdout] 197 |                 to_ty_ptr(options.span, mutability, pointee.into_rust(options)),
[INFO] [stdout]     |                                                             ^^^^^^^^^ method not found in `Box<Type>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:205:53
[INFO] [stdout]     |
[INFO] [stdout] 205 |                 c::Type::Primitive("c_void".into()).into_rust(options)
[INFO] [stdout]     |                                                     ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                    ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<ast::c::Type>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:186:51
[INFO] [stdout]     |
[INFO] [stdout] 186 |                 to_ty_array(options.span, element.into_rust(options), size),
[INFO] [stdout]     |                                                   ^^^^^^^^^ method not found in `Box<Type>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:215:44
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                                            ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:215:64
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                                                                ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatKind`
[INFO] [stdout]    --> src/ast/rust.rs:243:16
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                ^^^^^^^ use of undeclared type `PatKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BindingMode`
[INFO] [stdout]    --> src/ast/rust.rs:243:31
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                               ^^^^^^^^^^^ use of undeclared type `BindingMode`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:243:52
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                                                    ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AttrId` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         id: AttrId(0),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AttrStyle`
[INFO] [stdout]    --> src/ast/rust.rs:250:16
[INFO] [stdout]     |
[INFO] [stdout] 250 |         style: AttrStyle::Outer,
[INFO] [stdout]     |                ^^^^^^^^^ use of undeclared type `AttrStyle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitKind`
[INFO] [stdout]    --> src/ast/rust.rs:259:37
[INFO] [stdout]     |
[INFO] [stdout] 259 |     let lit = codemap::respan(span, LitKind::Str(doc, StrStyle::Cooked));
[INFO] [stdout]     |                                     ^^^^^^^ use of undeclared type `LitKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StrStyle`
[INFO] [stdout]    --> src/ast/rust.rs:259:55
[INFO] [stdout]     |
[INFO] [stdout] 259 |     let lit = codemap::respan(span, LitKind::Str(doc, StrStyle::Cooked));
[INFO] [stdout]     |                                                       ^^^^^^^^ use of undeclared type `StrStyle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:260:43
[INFO] [stdout]     |
[INFO] [stdout] 260 |     let value = to_meta_item(span, "doc", MetaItemKind::NameValue(lit));
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:268:42
[INFO] [stdout]     |
[INFO] [stdout] 268 |         let meta = to_meta_item(span, w, MetaItemKind::Word);
[INFO] [stdout]     |                                          ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NestedMetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:269:31
[INFO] [stdout]     |
[INFO] [stdout] 269 |         codemap::respan(span, NestedMetaItemKind::MetaItem(meta))
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^ use of undeclared type `NestedMetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:271:50
[INFO] [stdout]     |
[INFO] [stdout] 271 |     to_attribute(span, to_meta_item(span, outer, MetaItemKind::List(inner)), false)
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BlockCheckMode`
[INFO] [stdout]    --> src/ast/rust.rs:278:16
[INFO] [stdout]     |
[INFO] [stdout] 278 |         rules: BlockCheckMode::Default,
[INFO] [stdout]     |                ^^^^^^^^^^^^^^ use of undeclared type `BlockCheckMode`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ThinVec`
[INFO] [stdout]    --> src/ast/rust.rs:285:64
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |                                                                ^^^^^^^ use of undeclared type `ThinVec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:289:19
[INFO] [stdout]     |
[INFO] [stdout] 289 |     to_expr(span, ExprKind::AddrOf(mutability, expr))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:293:19
[INFO] [stdout]     |
[INFO] [stdout] 293 |     to_expr(span, ExprKind::Call(callee, arguments))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:297:19
[INFO] [stdout]     |
[INFO] [stdout] 297 |     to_expr(span, ExprKind::Field(struct_, codemap::respan(span, to_ident(ident))))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:301:19
[INFO] [stdout]     |
[INFO] [stdout] 301 |     to_expr(span, ExprKind::Unary(UnOp::Neg, expr))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnOp`
[INFO] [stdout]    --> src/ast/rust.rs:301:35
[INFO] [stdout]     |
[INFO] [stdout] 301 |     to_expr(span, ExprKind::Unary(UnOp::Neg, expr))
[INFO] [stdout]     |                                   ^^^^ use of undeclared type `UnOp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:305:19
[INFO] [stdout]     |
[INFO] [stdout] 305 |     to_expr(span, ExprKind::Path(None, path))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:309:19
[INFO] [stdout]     |
[INFO] [stdout] 309 |     to_expr(span, ExprKind::Lit(P(codemap::respan(span, node))))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitKind`
[INFO] [stdout]    --> src/ast/rust.rs:313:23
[INFO] [stdout]     |
[INFO] [stdout] 313 |     to_expr_lit(span, LitKind::Int(value, LitIntType::Unsuffixed))
[INFO] [stdout]     |                       ^^^^^^^ use of undeclared type `LitKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitIntType`
[INFO] [stdout]    --> src/ast/rust.rs:313:43
[INFO] [stdout]     |
[INFO] [stdout] 313 |     to_expr_lit(span, LitKind::Int(value, LitIntType::Unsuffixed))
[INFO] [stdout]     |                                           ^^^^^^^^^^ use of undeclared type `LitIntType`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:327:14
[INFO] [stdout]     |
[INFO] [stdout] 327 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ForeignItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:332:34
[INFO] [stdout]     |
[INFO] [stdout] 332 |     to_foreign_item(span, ident, ForeignItemKind::Fn(decl, Generics::default()))
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^ use of undeclared type `ForeignItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:332:60
[INFO] [stdout]     |
[INFO] [stdout] 332 |     to_foreign_item(span, ident, ForeignItemKind::Fn(decl, Generics::default()))
[INFO] [stdout]     |                                                            ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ident`
[INFO] [stdout]    --> src/ast/rust.rs:336:5
[INFO] [stdout]     |
[INFO] [stdout] 336 |     Ident::from_str(ident.as_ref())
[INFO] [stdout]     |     ^^^^^ use of undeclared type `Ident`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:343:14
[INFO] [stdout]     |
[INFO] [stdout] 343 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Defaultness`
[INFO] [stdout]    --> src/ast/rust.rs:344:22
[INFO] [stdout]     |
[INFO] [stdout] 344 |         defaultness: Defaultness::Final,
[INFO] [stdout]     |                      ^^^^^^^^^^^ use of undeclared type `Defaultness`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SelfKind`
[INFO] [stdout]    --> src/ast/rust.rs:355:43
[INFO] [stdout]     |
[INFO] [stdout] 355 |         let self_ = codemap::respan(span, SelfKind::Region(None, mutability));
[INFO] [stdout]     |                                           ^^^^^^^^ use of undeclared type `SelfKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arg`
[INFO] [stdout]    --> src/ast/rust.rs:356:28
[INFO] [stdout]     |
[INFO] [stdout] 356 |         d.inputs.insert(0, Arg::from_self(self_, codemap::respan(span, to_ident("self"))));
[INFO] [stdout]     |                            ^^^ use of undeclared type `Arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:360:19
[INFO] [stdout]     |
[INFO] [stdout] 360 |         unsafety: Unsafety::Unsafe,
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Constness`
[INFO] [stdout]    --> src/ast/rust.rs:361:42
[INFO] [stdout]     |
[INFO] [stdout] 361 |         constness: codemap::respan(span, Constness::NotConst),
[INFO] [stdout]     |                                          ^^^^^^^^^ use of undeclared type `Constness`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:364:19
[INFO] [stdout]     |
[INFO] [stdout] 364 |         generics: Generics::default(),
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImplItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:366:31
[INFO] [stdout]     |
[INFO] [stdout] 366 |     to_impl_item(span, ident, ImplItemKind::Method(sig, block))
[INFO] [stdout]     |                               ^^^^^^^^^^^^ use of undeclared type `ImplItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:373:71
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |                                                                       ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:374:14
[INFO] [stdout]     |
[INFO] [stdout] 374 |         _ => Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:388:16
[INFO] [stdout]     |
[INFO] [stdout] 388 |     let node = ItemKind::Impl(
[INFO] [stdout]     |                ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:389:9
[INFO] [stdout]     |
[INFO] [stdout] 389 |         Unsafety::Normal,
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImplPolarity`
[INFO] [stdout]    --> src/ast/rust.rs:390:9
[INFO] [stdout]     |
[INFO] [stdout] 390 |         ImplPolarity::Positive,
[INFO] [stdout]     |         ^^^^^^^^^^^^ use of undeclared type `ImplPolarity`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         Generics::default(),
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:393:21
[INFO] [stdout]     |
[INFO] [stdout] 393 |         to_ty(span, TyKind::Path(None, to_path(span, false, &[ident.as_ref()]))),
[INFO] [stdout]     |                     ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:400:26
[INFO] [stdout]     |
[INFO] [stdout] 400 |     to_item(span, ident, ItemKind::Mod(Mod { inner: span, items: items }), vec![])
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariantData`
[INFO] [stdout]    --> src/ast/rust.rs:406:16
[INFO] [stdout]     |
[INFO] [stdout] 406 |     let data = VariantData::Struct(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                ^^^^^^^^^^^ use of undeclared type `VariantData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:407:26
[INFO] [stdout]     |
[INFO] [stdout] 407 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:407:49
[INFO] [stdout]     |
[INFO] [stdout] 407 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariantData`
[INFO] [stdout]    --> src/ast/rust.rs:413:16
[INFO] [stdout]     |
[INFO] [stdout] 413 |     let data = VariantData::Tuple(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                ^^^^^^^^^^^ use of undeclared type `VariantData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:414:26
[INFO] [stdout]     |
[INFO] [stdout] 414 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:414:49
[INFO] [stdout]     |
[INFO] [stdout] 414 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathParameters`
[INFO] [stdout]    --> src/ast/rust.rs:423:60
[INFO] [stdout]     |
[INFO] [stdout] 423 |         PathSegment { identifier: to_ident(s), parameters: PathParameters::none() }
[INFO] [stdout]     |                                                            ^^^^^^^^^^^^^^ use of undeclared type `PathParameters`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathParameters`
[INFO] [stdout]    --> src/ast/rust.rs:433:35
[INFO] [stdout]     |
[INFO] [stdout] 433 |     path.segments[2].parameters = PathParameters::AngleBracketed(data);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^ use of undeclared type `PathParameters`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StmtKind`
[INFO] [stdout]    --> src/ast/rust.rs:440:15
[INFO] [stdout]     |
[INFO] [stdout] 440 |         node: StmtKind::Expr(expr),
[INFO] [stdout]     |               ^^^^^^^^ use of undeclared type `StmtKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:449:14
[INFO] [stdout]     |
[INFO] [stdout] 449 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:461:17
[INFO] [stdout]     |
[INFO] [stdout] 461 |     to_ty(span, TyKind::Array(ty, to_expr_lit_int(span, length as u64)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:465:36
[INFO] [stdout]     |
[INFO] [stdout] 465 |     let fn_ = BareFnTy { unsafety: Unsafety::Normal, abi: Abi::C, lifetimes: vec![], decl: decl };
[INFO] [stdout]     |                                    ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:466:17
[INFO] [stdout]     |
[INFO] [stdout] 466 |     to_ty(span, TyKind::BareFn(P(fn_)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:470:17
[INFO] [stdout]     |
[INFO] [stdout] 470 |     to_ty(span, TyKind::Path(None, to_path(span, global, segments)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:474:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |     to_ty(span, TyKind::Ptr(MutTy { ty: ty, mutbl: mutability }))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<Function>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:190:66
[INFO] [stdout]     |
[INFO] [stdout] 190 |                 let path = to_path_option(options.span, function.into_rust(options));
[INFO] [stdout]     |                                                                  ^^^^^^^^^ method not found in `Box<Function>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:191:37
[INFO] [stdout]     |
[INFO] [stdout] 191 |                 to_ty(options.span, TyKind::Path(None, path))
[INFO] [stdout]     |                                     ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Typedef` in the current scope
[INFO] [stdout]    --> src/lib.rs:242:15
[INFO] [stdout]     |
[INFO] [stdout] 242 |             t.into_rust(&self.options)
[INFO] [stdout]     |               ^^^^^^^^^ method not found in `Typedef`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:469:1
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub struct Typedef {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Box<ast::c::Type>` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:197:61
[INFO] [stdout]     |
[INFO] [stdout] 197 |                 to_ty_ptr(options.span, mutability, pointee.into_rust(options)),
[INFO] [stdout]     |                                                             ^^^^^^^^^ method not found in `Box<Type>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Typedef` in the current scope
[INFO] [stdout]    --> src/lib.rs:319:60
[INFO] [stdout]     |
[INFO] [stdout] 319 |     let mut typedefs = typedefs.into_iter().map(|(_, t)| t.into_rust(options)).collect::<Vec<_>>();
[INFO] [stdout]     |                                                            ^^^^^^^^^ method not found in `Typedef`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:469:1
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub struct Typedef {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:205:53
[INFO] [stdout]     |
[INFO] [stdout] 205 |                 c::Type::Primitive("c_void".into()).into_rust(options)
[INFO] [stdout]     |                                                     ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:215:20
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                    ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Enum` in the current scope
[INFO] [stdout]    --> src/lib.rs:332:54
[INFO] [stdout]     |
[INFO] [stdout] 332 |     let mut enums = enums.into_iter().map(|(_, e)| e.into_rust(options)).collect::<Vec<_>>();
[INFO] [stdout]     |                                                      ^^^^^^^^^ method not found in `Enum`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:220:1
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub struct Enum {
[INFO] [stdout]     | --------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Record` in the current scope
[INFO] [stdout]    --> src/lib.rs:351:36
[INFO] [stdout]     |
[INFO] [stdout] 351 |         let (subnested, items) = r.into_rust(options);
[INFO] [stdout]     |                                    ^^^^^^^^^ method not found in `Record`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:313:1
[INFO] [stdout]     |
[INFO] [stdout] 313 | pub struct Record {
[INFO] [stdout]     | ----------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for enum `ast::c::Type` in the current scope
[INFO] [stdout]    --> src/ast/rust.rs:215:44
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                                            ^^^^^^^^^ method not found in `Type`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:57:1
[INFO] [stdout]     |
[INFO] [stdout] 57  | pub enum Type {
[INFO] [stdout]     | ------------- method `into_rust` not found for this enum
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:215:64
[INFO] [stdout]     |
[INFO] [stdout] 215 |         let node = ItemKind::Ty(self.type_.into_rust(options), Generics::default());
[INFO] [stdout]     |                                                                ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PatKind`
[INFO] [stdout]    --> src/ast/rust.rs:243:16
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                ^^^^^^^ use of undeclared type `PatKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BindingMode`
[INFO] [stdout]    --> src/ast/rust.rs:243:31
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                               ^^^^^^^^^^^ use of undeclared type `BindingMode`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutability`
[INFO] [stdout]    --> src/ast/rust.rs:243:52
[INFO] [stdout]     |
[INFO] [stdout] 243 |     let node = PatKind::Ident(BindingMode::ByValue(Mutability::Immutable), ident, None);
[INFO] [stdout]     |                                                    ^^^^^^^^^^ use of undeclared type `Mutability`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AttrId` in this scope
[INFO] [stdout]    --> src/ast/rust.rs:249:13
[INFO] [stdout]     |
[INFO] [stdout] 249 |         id: AttrId(0),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AttrStyle`
[INFO] [stdout]    --> src/ast/rust.rs:250:16
[INFO] [stdout]     |
[INFO] [stdout] 250 |         style: AttrStyle::Outer,
[INFO] [stdout]     |                ^^^^^^^^^ use of undeclared type `AttrStyle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitKind`
[INFO] [stdout]    --> src/ast/rust.rs:259:37
[INFO] [stdout]     |
[INFO] [stdout] 259 |     let lit = codemap::respan(span, LitKind::Str(doc, StrStyle::Cooked));
[INFO] [stdout]     |                                     ^^^^^^^ use of undeclared type `LitKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StrStyle`
[INFO] [stdout]    --> src/ast/rust.rs:259:55
[INFO] [stdout]     |
[INFO] [stdout] 259 |     let lit = codemap::respan(span, LitKind::Str(doc, StrStyle::Cooked));
[INFO] [stdout]     |                                                       ^^^^^^^^ use of undeclared type `StrStyle`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:260:43
[INFO] [stdout]     |
[INFO] [stdout] 260 |     let value = to_meta_item(span, "doc", MetaItemKind::NameValue(lit));
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:268:42
[INFO] [stdout]     |
[INFO] [stdout] 268 |         let meta = to_meta_item(span, w, MetaItemKind::Word);
[INFO] [stdout]     |                                          ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NestedMetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:269:31
[INFO] [stdout]     |
[INFO] [stdout] 269 |         codemap::respan(span, NestedMetaItemKind::MetaItem(meta))
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^ use of undeclared type `NestedMetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:271:50
[INFO] [stdout]     |
[INFO] [stdout] 271 |     to_attribute(span, to_meta_item(span, outer, MetaItemKind::List(inner)), false)
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^ use of undeclared type `MetaItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BlockCheckMode`
[INFO] [stdout]    --> src/ast/rust.rs:278:16
[INFO] [stdout]     |
[INFO] [stdout] 278 |         rules: BlockCheckMode::Default,
[INFO] [stdout]     |                ^^^^^^^^^^^^^^ use of undeclared type `BlockCheckMode`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ThinVec`
[INFO] [stdout]    --> src/ast/rust.rs:285:64
[INFO] [stdout]     |
[INFO] [stdout] 285 |     P(Expr { id: DUMMY_NODE_ID, node: node, span: span, attrs: ThinVec::new() })
[INFO] [stdout]     |                                                                ^^^^^^^ use of undeclared type `ThinVec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:289:19
[INFO] [stdout]     |
[INFO] [stdout] 289 |     to_expr(span, ExprKind::AddrOf(mutability, expr))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:293:19
[INFO] [stdout]     |
[INFO] [stdout] 293 |     to_expr(span, ExprKind::Call(callee, arguments))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:297:19
[INFO] [stdout]     |
[INFO] [stdout] 297 |     to_expr(span, ExprKind::Field(struct_, codemap::respan(span, to_ident(ident))))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:301:19
[INFO] [stdout]     |
[INFO] [stdout] 301 |     to_expr(span, ExprKind::Unary(UnOp::Neg, expr))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UnOp`
[INFO] [stdout]    --> src/ast/rust.rs:301:35
[INFO] [stdout]     |
[INFO] [stdout] 301 |     to_expr(span, ExprKind::Unary(UnOp::Neg, expr))
[INFO] [stdout]     |                                   ^^^^ use of undeclared type `UnOp`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:305:19
[INFO] [stdout]     |
[INFO] [stdout] 305 |     to_expr(span, ExprKind::Path(None, path))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind`
[INFO] [stdout]    --> src/ast/rust.rs:309:19
[INFO] [stdout]     |
[INFO] [stdout] 309 |     to_expr(span, ExprKind::Lit(P(codemap::respan(span, node))))
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `ExprKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitKind`
[INFO] [stdout]    --> src/ast/rust.rs:313:23
[INFO] [stdout]     |
[INFO] [stdout] 313 |     to_expr_lit(span, LitKind::Int(value, LitIntType::Unsuffixed))
[INFO] [stdout]     |                       ^^^^^^^ use of undeclared type `LitKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LitIntType`
[INFO] [stdout]    --> src/ast/rust.rs:313:43
[INFO] [stdout]     |
[INFO] [stdout] 313 |     to_expr_lit(span, LitKind::Int(value, LitIntType::Unsuffixed))
[INFO] [stdout]     |                                           ^^^^^^^^^^ use of undeclared type `LitIntType`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:327:14
[INFO] [stdout]     |
[INFO] [stdout] 327 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ForeignItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:332:34
[INFO] [stdout]     |
[INFO] [stdout] 332 |     to_foreign_item(span, ident, ForeignItemKind::Fn(decl, Generics::default()))
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^ use of undeclared type `ForeignItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:332:60
[INFO] [stdout]     |
[INFO] [stdout] 332 |     to_foreign_item(span, ident, ForeignItemKind::Fn(decl, Generics::default()))
[INFO] [stdout]     |                                                            ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ident`
[INFO] [stdout]    --> src/ast/rust.rs:336:5
[INFO] [stdout]     |
[INFO] [stdout] 336 |     Ident::from_str(ident.as_ref())
[INFO] [stdout]     |     ^^^^^ use of undeclared type `Ident`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:343:14
[INFO] [stdout]     |
[INFO] [stdout] 343 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Defaultness`
[INFO] [stdout]    --> src/ast/rust.rs:344:22
[INFO] [stdout]     |
[INFO] [stdout] 344 |         defaultness: Defaultness::Final,
[INFO] [stdout]     |                      ^^^^^^^^^^^ use of undeclared type `Defaultness`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SelfKind`
[INFO] [stdout]    --> src/ast/rust.rs:355:43
[INFO] [stdout]     |
[INFO] [stdout] 355 |         let self_ = codemap::respan(span, SelfKind::Region(None, mutability));
[INFO] [stdout]     |                                           ^^^^^^^^ use of undeclared type `SelfKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arg`
[INFO] [stdout]    --> src/ast/rust.rs:356:28
[INFO] [stdout]     |
[INFO] [stdout] 356 |         d.inputs.insert(0, Arg::from_self(self_, codemap::respan(span, to_ident("self"))));
[INFO] [stdout]     |                            ^^^ use of undeclared type `Arg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:360:19
[INFO] [stdout]     |
[INFO] [stdout] 360 |         unsafety: Unsafety::Unsafe,
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Constness`
[INFO] [stdout]    --> src/ast/rust.rs:361:42
[INFO] [stdout]     |
[INFO] [stdout] 361 |         constness: codemap::respan(span, Constness::NotConst),
[INFO] [stdout]     |                                          ^^^^^^^^^ use of undeclared type `Constness`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:364:19
[INFO] [stdout]     |
[INFO] [stdout] 364 |         generics: Generics::default(),
[INFO] [stdout]     |                   ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImplItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:366:31
[INFO] [stdout]     |
[INFO] [stdout] 366 |     to_impl_item(span, ident, ImplItemKind::Method(sig, block))
[INFO] [stdout]     |                               ^^^^^^^^^^^^ use of undeclared type `ImplItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:373:71
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |                                                                       ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:374:14
[INFO] [stdout]     |
[INFO] [stdout] 374 |         _ => Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:388:16
[INFO] [stdout]     |
[INFO] [stdout] 388 |     let node = ItemKind::Impl(
[INFO] [stdout]     |                ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:389:9
[INFO] [stdout]     |
[INFO] [stdout] 389 |         Unsafety::Normal,
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ImplPolarity`
[INFO] [stdout]    --> src/ast/rust.rs:390:9
[INFO] [stdout]     |
[INFO] [stdout] 390 |         ImplPolarity::Positive,
[INFO] [stdout]     |         ^^^^^^^^^^^^ use of undeclared type `ImplPolarity`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |         Generics::default(),
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:393:21
[INFO] [stdout]     |
[INFO] [stdout] 393 |         to_ty(span, TyKind::Path(None, to_path(span, false, &[ident.as_ref()]))),
[INFO] [stdout]     |                     ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:400:26
[INFO] [stdout]     |
[INFO] [stdout] 400 |     to_item(span, ident, ItemKind::Mod(Mod { inner: span, items: items }), vec![])
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariantData`
[INFO] [stdout]    --> src/ast/rust.rs:406:16
[INFO] [stdout]     |
[INFO] [stdout] 406 |     let data = VariantData::Struct(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                ^^^^^^^^^^^ use of undeclared type `VariantData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:407:26
[INFO] [stdout]     |
[INFO] [stdout] 407 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:407:49
[INFO] [stdout]     |
[INFO] [stdout] 407 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariantData`
[INFO] [stdout]    --> src/ast/rust.rs:413:16
[INFO] [stdout]     |
[INFO] [stdout] 413 |     let data = VariantData::Tuple(fields, DUMMY_NODE_ID);
[INFO] [stdout]     |                ^^^^^^^^^^^ use of undeclared type `VariantData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:414:26
[INFO] [stdout]     |
[INFO] [stdout] 414 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                          ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Generics`
[INFO] [stdout]    --> src/ast/rust.rs:414:49
[INFO] [stdout]     |
[INFO] [stdout] 414 |     to_item(span, ident, ItemKind::Struct(data, Generics::default()), attrs)
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Generics`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathParameters`
[INFO] [stdout]    --> src/ast/rust.rs:423:60
[INFO] [stdout]     |
[INFO] [stdout] 423 |         PathSegment { identifier: to_ident(s), parameters: PathParameters::none() }
[INFO] [stdout]     |                                                            ^^^^^^^^^^^^^^ use of undeclared type `PathParameters`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathParameters`
[INFO] [stdout]    --> src/ast/rust.rs:433:35
[INFO] [stdout]     |
[INFO] [stdout] 433 |     path.segments[2].parameters = PathParameters::AngleBracketed(data);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^ use of undeclared type `PathParameters`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StmtKind`
[INFO] [stdout]    --> src/ast/rust.rs:440:15
[INFO] [stdout]     |
[INFO] [stdout] 440 |         node: StmtKind::Expr(expr),
[INFO] [stdout]     |               ^^^^^^^^ use of undeclared type `StmtKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Visibility`
[INFO] [stdout]    --> src/ast/rust.rs:449:14
[INFO] [stdout]     |
[INFO] [stdout] 449 |         vis: Visibility::Public,
[INFO] [stdout]     |              ^^^^^^^^^^ use of undeclared type `Visibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:461:17
[INFO] [stdout]     |
[INFO] [stdout] 461 |     to_ty(span, TyKind::Array(ty, to_expr_lit_int(span, length as u64)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unsafety`
[INFO] [stdout]    --> src/ast/rust.rs:465:36
[INFO] [stdout]     |
[INFO] [stdout] 465 |     let fn_ = BareFnTy { unsafety: Unsafety::Normal, abi: Abi::C, lifetimes: vec![], decl: decl };
[INFO] [stdout]     |                                    ^^^^^^^^ use of undeclared type `Unsafety`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:466:17
[INFO] [stdout]     |
[INFO] [stdout] 466 |     to_ty(span, TyKind::BareFn(P(fn_)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:470:17
[INFO] [stdout]     |
[INFO] [stdout] 470 |     to_ty(span, TyKind::Path(None, to_path(span, global, segments)))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind`
[INFO] [stdout]    --> src/ast/rust.rs:474:17
[INFO] [stdout]     |
[INFO] [stdout] 474 |     to_ty(span, TyKind::Ptr(MutTy { ty: ty, mutbl: mutability }))
[INFO] [stdout]     |                 ^^^^^^ use of undeclared type `TyKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/lib.rs:373:15
[INFO] [stdout]     |
[INFO] [stdout] 373 |             f.into_rust(options)
[INFO] [stdout]     |               ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/lib.rs:376:25
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let functions = ItemKind::ForeignMod(ForeignMod { abi: Abi::C, items: functions });
[INFO] [stdout]     |                         ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:373:35
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |                                   ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/lib.rs:382:12
[INFO] [stdout]     |
[INFO] [stdout] 382 |     if let ItemKind::Ty(_, _) = item.node {
[INFO] [stdout]     |            ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:373:9
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 238 previous errors; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0463, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Typedef` in the current scope
[INFO] [stdout]    --> src/lib.rs:242:15
[INFO] [stdout]     |
[INFO] [stdout] 242 |             t.into_rust(&self.options)
[INFO] [stdout]     |               ^^^^^^^^^ method not found in `Typedef`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:469:1
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub struct Typedef {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `crustacean` (lib) due to 239 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Typedef` in the current scope
[INFO] [stdout]    --> src/lib.rs:319:60
[INFO] [stdout]     |
[INFO] [stdout] 319 |     let mut typedefs = typedefs.into_iter().map(|(_, t)| t.into_rust(options)).collect::<Vec<_>>();
[INFO] [stdout]     |                                                            ^^^^^^^^^ method not found in `Typedef`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:469:1
[INFO] [stdout]     |
[INFO] [stdout] 469 | pub struct Typedef {
[INFO] [stdout]     | ------------------ method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Enum` in the current scope
[INFO] [stdout]    --> src/lib.rs:332:54
[INFO] [stdout]     |
[INFO] [stdout] 332 |     let mut enums = enums.into_iter().map(|(_, e)| e.into_rust(options)).collect::<Vec<_>>();
[INFO] [stdout]     |                                                      ^^^^^^^^^ method not found in `Enum`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:220:1
[INFO] [stdout]     |
[INFO] [stdout] 220 | pub struct Enum {
[INFO] [stdout]     | --------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `ast::c::Record` in the current scope
[INFO] [stdout]    --> src/lib.rs:351:36
[INFO] [stdout]     |
[INFO] [stdout] 351 |         let (subnested, items) = r.into_rust(options);
[INFO] [stdout]     |                                    ^^^^^^^^^ method not found in `Record`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:313:1
[INFO] [stdout]     |
[INFO] [stdout] 313 | pub struct Record {
[INFO] [stdout]     | ----------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_rust` found for struct `Function` in the current scope
[INFO] [stdout]    --> src/lib.rs:373:15
[INFO] [stdout]     |
[INFO] [stdout] 373 |             f.into_rust(options)
[INFO] [stdout]     |               ^^^^^^^^^ method not found in `Function`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/ast/c.rs:264:1
[INFO] [stdout]     |
[INFO] [stdout] 264 | pub struct Function {
[INFO] [stdout]     | ------------------- method `into_rust` not found for this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `rust::IntoRust` defines an item `into_rust`, perhaps you need to implement it
[INFO] [stdout]    --> src/ast/rust.rs:30:1
[INFO] [stdout]     |
[INFO] [stdout] 30  | pub trait IntoRust<T> {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/lib.rs:376:25
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let functions = ItemKind::ForeignMod(ForeignMod { abi: Abi::C, items: functions });
[INFO] [stdout]     |                         ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:373:35
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |                                   ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/lib.rs:382:12
[INFO] [stdout]     |
[INFO] [stdout] 382 |     if let ItemKind::Ty(_, _) = item.node {
[INFO] [stdout]     |            ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind`
[INFO] [stdout]    --> src/ast/rust.rs:373:9
[INFO] [stdout]     |
[INFO] [stdout] 373 |         ItemKind::ForeignMod(_) | ItemKind::Impl(_, _, _, _, _, _) => Visibility::Inherited,
[INFO] [stdout]     |         ^^^^^^^^ use of undeclared type `ItemKind`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 238 previous errors; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433, E0463, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `crustacean` (lib test) due to 239 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "beac7d5545d4cfe81463333e600a9014d7841bb931a4c50de9f4cdfbf9eb18d7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "beac7d5545d4cfe81463333e600a9014d7841bb931a4c50de9f4cdfbf9eb18d7", kill_on_drop: false }`
[INFO] [stdout] beac7d5545d4cfe81463333e600a9014d7841bb931a4c50de9f4cdfbf9eb18d7
