[INFO] crate ffigen 0.0.1 is already in cache [INFO] testing ffigen-0.0.1 against 1.38.0 for beta-1.39-1 [INFO] extracting crate ffigen 0.0.1 into work/builds/worker-6/source [INFO] validating manifest of crates.io crate ffigen 0.0.1 on toolchain 1.38.0 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate ffigen 0.0.1 [INFO] finished tweaking crates.io crate ffigen 0.0.1 [INFO] tweaked toml for crates.io crate ffigen 0.0.1 written to work/builds/worker-6/source/Cargo.toml [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "build" "--frozen"` [INFO] [stdout] 66dc5e06769498abf11d528057eba31285f28b5ed2a28caed11289fb780314de [INFO] running `"docker" "start" "-a" "66dc5e06769498abf11d528057eba31285f28b5ed2a28caed11289fb780314de"` [INFO] [stderr] Compiling syntex_pos v0.59.1 [INFO] [stderr] Compiling extprim v1.7.0 [INFO] [stderr] Compiling toml v0.5.3 [INFO] [stderr] Compiling syntex_errors v0.59.1 [INFO] [stderr] Compiling syntex_syntax v0.59.1 [INFO] [stderr] Compiling ffigen v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: could not find `Parser` in `toml` [INFO] [stderr] --> src/parser/cargo.rs:39:30 [INFO] [stderr] | [INFO] [stderr] 39 | let config = match toml::Parser::new(&config_content).parse() { [INFO] [stderr] | ^^^^^^ could not find `Parser` in `toml` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `MetaItem_` in `ast` [INFO] [stderr] --> src/parser/source.rs:33:38 [INFO] [stderr] | [INFO] [stderr] 33 | ast::MetaItem_::MetaWord(ref w) => interned_to_string(w) == "no_mangle", [INFO] [stderr] | ^^^^^^^^^ could not find `MetaItem_` in `ast` [INFO] [stderr] [INFO] [stderr] error[E0531]: cannot find tuple struct/variant `ItemFn` in module `ast` [INFO] [stderr] --> src/parser/source.rs:29:18 [INFO] [stderr] | [INFO] [stderr] 29 | ast::ItemFn(ref decl, _, _, abi, _, _) if abi == abi::C => { [INFO] [stderr] | ^^^^^^ not found in `ast` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use syntex_syntax::visit::FnKind::ItemFn; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `C` in module `abi` [INFO] [stderr] --> src/parser/source.rs:29:67 [INFO] [stderr] | [INFO] [stderr] 29 | ast::ItemFn(ref decl, _, _, abi, _, _) if abi == abi::C => { [INFO] [stderr] | ^ not found in `abi` [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use Lang::C; [INFO] [stderr] | [INFO] [stderr] 1 | use syntex_syntax::abi::Abi::C; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0531]: cannot find tuple struct/variant `ItemMod` in module `ast` [INFO] [stderr] --> src/parser/source.rs:51:18 [INFO] [stderr] | [INFO] [stderr] 51 | ast::ItemMod(_) => { [INFO] [stderr] | ^^^^^^^ not found in `ast` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `InternedString` in module `parse::token` [INFO] [stderr] --> src/parser/source.rs:115:48 [INFO] [stderr] | [INFO] [stderr] 115 | fn interned_to_string(interned: &parse::token::InternedString) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in `parse::token` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use syntex_syntax::symbol::InternedString; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `lookup` found for type `toml::Value` in the current scope [INFO] [stderr] --> src/parser/cargo.rs:44:37 [INFO] [stderr] | [INFO] [stderr] 44 | let package_name = match config.lookup("package.name") { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `lookup` found for type `toml::Value` in the current scope [INFO] [stderr] --> src/parser/cargo.rs:57:33 [INFO] [stderr] | [INFO] [stderr] 57 | let lib_name = match config.lookup("lib.name") { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `lookup` found for type `toml::Value` in the current scope [INFO] [stderr] --> src/parser/cargo.rs:69:35 [INFO] [stderr] | [INFO] [stderr] 69 | let crate_type = match config.lookup("lib.crate_type") { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `node` on type `&syntex_syntax::ast::Attribute` [INFO] [stderr] --> src/parser/source.rs:32:37 [INFO] [stderr] | [INFO] [stderr] 32 | match v.node.value.node { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 1 parameter but 0 parameters were supplied [INFO] [stderr] --> src/parser/source.rs:73:16 [INFO] [stderr] | [INFO] [stderr] 73 | let sess = parse::ParseSess::new(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 3 parameters were supplied [INFO] [stderr] --> src/parser/source.rs:74:17 [INFO] [stderr] | [INFO] [stderr] 74 | let krate = parse::parse_crate_from_file(path, cfg, &sess); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/parser/source.rs:81:41 [INFO] [stderr] | [INFO] [stderr] 81 | visit::walk_crate(&mut visitor, &krate); [INFO] [stderr] | ^^^^^^ expected struct `syntex_syntax::ast::Crate`, found enum `std::result::Result` [INFO] [stderr] | [INFO] [stderr] = note: expected type `&syntex_syntax::ast::Crate` [INFO] [stderr] found type `&std::result::Result>` [INFO] [stderr] [INFO] [stderr] error[E0599]: no variant or associated item named `DefaultReturn` found for type `syntex_syntax::ast::FunctionRetTy` in the current scope [INFO] [stderr] --> src/parser/source.rs:100:29 [INFO] [stderr] | [INFO] [stderr] 100 | ast::FunctionRetTy::DefaultReturn(_) | ast::FunctionRetTy::NoReturn(_) => ReturnType::Void, [INFO] [stderr] | ^^^^^^^^^^^^^ variant or associated item not found in `syntex_syntax::ast::FunctionRetTy` [INFO] [stderr] [INFO] [stderr] error[E0599]: no variant or associated item named `NoReturn` found for type `syntex_syntax::ast::FunctionRetTy` in the current scope [INFO] [stderr] --> src/parser/source.rs:100:68 [INFO] [stderr] | [INFO] [stderr] 100 | ast::FunctionRetTy::DefaultReturn(_) | ast::FunctionRetTy::NoReturn(_) => ReturnType::Void, [INFO] [stderr] | ^^^^^^^^ variant or associated item not found in `syntex_syntax::ast::FunctionRetTy` [INFO] [stderr] [INFO] [stderr] error[E0599]: no variant or associated item named `Return` found for type `syntex_syntax::ast::FunctionRetTy` in the current scope [INFO] [stderr] --> src/parser/source.rs:101:29 [INFO] [stderr] | [INFO] [stderr] 101 | ast::FunctionRetTy::Return(ref r) => ReturnType::Type(translate_type(r)) [INFO] [stderr] | ^^^^^^ variant or associated item not found in `syntex_syntax::ast::FunctionRetTy` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/marshal/mod.rs:16:38 [INFO] [stderr] | [INFO] [stderr] 16 | let allocated = libc::malloc(translated.len() as u64 + 1) as *mut u8; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected usize, found u64 [INFO] [stderr] help: you can convert an `u64` to `usize` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 16 | let allocated = libc::malloc((translated.len() as u64 + 1).try_into().unwrap()) as *mut u8; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 17 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0308, E0412, E0425, E0433, E0599, E0609. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: Could not compile `ffigen`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "66dc5e06769498abf11d528057eba31285f28b5ed2a28caed11289fb780314de"` [INFO] running `"docker" "rm" "-f" "66dc5e06769498abf11d528057eba31285f28b5ed2a28caed11289fb780314de"` [INFO] [stdout] 66dc5e06769498abf11d528057eba31285f28b5ed2a28caed11289fb780314de