[INFO] cloning repository https://github.com/chaincode-labs/rust-decompiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chaincode-labs/rust-decompiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchaincode-labs%2Frust-decompiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchaincode-labs%2Frust-decompiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7a62160d78373ed6b7b9e77df38d83f07e44798f [INFO] testing chaincode-labs/rust-decompiler against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchaincode-labs%2Frust-decompiler" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chaincode-labs/rust-decompiler [INFO] finished tweaking git repo https://github.com/chaincode-labs/rust-decompiler [INFO] tweaked toml for git repo https://github.com/chaincode-labs/rust-decompiler written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chaincode-labs/rust-decompiler on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chaincode-labs/rust-decompiler already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro-crate v1.1.3 [INFO] [stderr] Downloaded num_enum_derive v0.5.7 [INFO] [stderr] Downloaded num_enum v0.5.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef6c19c96c9b081f73cb026ff572f751afa64055ecc893006b64e8916786a1ce [INFO] running `Command { std: "docker" "start" "-a" "ef6c19c96c9b081f73cb026ff572f751afa64055ecc893006b64e8916786a1ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef6c19c96c9b081f73cb026ff572f751afa64055ecc893006b64e8916786a1ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef6c19c96c9b081f73cb026ff572f751afa64055ecc893006b64e8916786a1ce", kill_on_drop: false }` [INFO] [stdout] ef6c19c96c9b081f73cb026ff572f751afa64055ecc893006b64e8916786a1ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c0c45d5c11649b2ed75f6b932fbf1a60dcc3015aa1c27a3107d8ce9791a7a7a1 [INFO] running `Command { std: "docker" "start" "-a" "c0c45d5c11649b2ed75f6b932fbf1a60dcc3015aa1c27a3107d8ce9791a7a7a1", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling num_enum_derive v0.5.7 [INFO] [stderr] Compiling num_enum v0.5.7 [INFO] [stderr] Compiling rust-decompiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `proc_macro` [INFO] [stdout] --> src/lexer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use proc_macro::bridge::PanicMessage::String; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `proc_macro` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `proc_macro`, use `cargo add proc_macro` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `lexer` in this scope [INFO] [stdout] --> src/lexer.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Lexer<'a> { [INFO] [stdout] | -------------------- similarly named struct `Lexer` defined here [INFO] [stdout] ... [INFO] [stdout] 123 | fn lexLine(l: &lexer) -> stateFn { [INFO] [stdout] | ^^^^^ help: a struct with a similar name exists: `Lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `stateFn` in this scope [INFO] [stdout] --> src/lexer.rs:123:26 [INFO] [stdout] | [INFO] [stdout] 9 | type stataFn = fn(&Lexer) -> stataFn; [INFO] [stdout] | ------------------------------------- similarly named type alias `stataFn` defined here [INFO] [stdout] ... [INFO] [stdout] 123 | fn lexLine(l: &lexer) -> stateFn { [INFO] [stdout] | ^^^^^^^ help: a type alias with a similar name exists: `stataFn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `stataFn` should have an upper camel case name [INFO] [stdout] --> src/lexer.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type stataFn = fn(&Lexer) -> stataFn; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `StataFn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0391]: cycle detected when expanding type alias `lexer::stataFn` [INFO] [stdout] --> src/lexer.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | type stataFn = fn(&Lexer) -> stataFn; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: ...which immediately requires expanding type alias `lexer::stataFn` again [INFO] [stdout] = note: type aliases cannot be recursive [INFO] [stdout] = help: consider using a struct, enum, or union instead to break the cycle [INFO] [stdout] = help: see for more information [INFO] [stdout] note: cycle used when computing type of `lexer::Lexer::state` [INFO] [stdout] --> src/lexer.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | state: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenType: Clone` is not satisfied [INFO] [stdout] --> src/lexer.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Copy, Eq, PartialOrd, PartialEq, Hash)] [INFO] [stdout] | ^^^^ the trait `Clone` is not implemented for `TokenType` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `std::marker::Copy` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/marker.rs:458:1 [INFO] [stdout] help: consider annotating `TokenType` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(Clone)] [INFO] [stdout] 14 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `state` found for struct `Lexer` in the current scope [INFO] [stdout] --> src/lexer.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Lexer<'a> { [INFO] [stdout] | -------------------- method `state` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 85 | self.state = self.state(&self); [INFO] [stdout] | ^^^^^------- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lexer.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | if self.input.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `bool`, found `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `bool` [INFO] [stdout] found enum `Option` [INFO] [stdout] help: use `Option::is_some` to test if the `Option` has a value [INFO] [stdout] | [INFO] [stdout] 91 | if self.input.next().is_some() { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `width` on type `&mut Lexer<'a>` [INFO] [stdout] --> src/lexer.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 92 | self.width = 0; [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `input`, `tx`, `state`, `lineno`, `start` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `Chars<'a>` [INFO] [stdout] --> src/lexer.rs:101:19 [INFO] [stdout] | [INFO] [stdout] 101 | self.input[self.start..self.pos] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0391, E0412, E0433, E0599, E0608, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-decompiler` (bin "rust-decompiler") due to 9 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "c0c45d5c11649b2ed75f6b932fbf1a60dcc3015aa1c27a3107d8ce9791a7a7a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0c45d5c11649b2ed75f6b932fbf1a60dcc3015aa1c27a3107d8ce9791a7a7a1", kill_on_drop: false }` [INFO] [stdout] c0c45d5c11649b2ed75f6b932fbf1a60dcc3015aa1c27a3107d8ce9791a7a7a1