[INFO] cloning repository https://github.com/mh-mobile/rust_parser_example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mh-mobile/rust_parser_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmh-mobile%2Frust_parser_example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmh-mobile%2Frust_parser_example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc4ccb13729ecfe7f1ff79813b791b9c2ad1ec5f [INFO] testing mh-mobile/rust_parser_example against master#552a959051cebf8f88a8f558399baf733bec9ce0 for pr-136932 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmh-mobile%2Frust_parser_example" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mh-mobile/rust_parser_example on toolchain 552a959051cebf8f88a8f558399baf733bec9ce0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mh-mobile/rust_parser_example [INFO] finished tweaking git repo https://github.com/mh-mobile/rust_parser_example [INFO] tweaked toml for git repo https://github.com/mh-mobile/rust_parser_example written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mh-mobile/rust_parser_example 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" "+552a959051cebf8f88a8f558399baf733bec9ce0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a4388d186bf388dfe40b09a2bdf03f515c134683c42cb5f9cc8ef3cdad4ee02 [INFO] running `Command { std: "docker" "start" "-a" "0a4388d186bf388dfe40b09a2bdf03f515c134683c42cb5f9cc8ef3cdad4ee02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a4388d186bf388dfe40b09a2bdf03f515c134683c42cb5f9cc8ef3cdad4ee02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a4388d186bf388dfe40b09a2bdf03f515c134683c42cb5f9cc8ef3cdad4ee02", kill_on_drop: false }` [INFO] [stdout] 0a4388d186bf388dfe40b09a2bdf03f515c134683c42cb5f9cc8ef3cdad4ee02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 325e9b82d7640b167703187330cebf93650306f6831e5f07da2c95382e7b565d [INFO] running `Command { std: "docker" "start" "-a" "325e9b82d7640b167703187330cebf93650306f6831e5f07da2c95382e7b565d", kill_on_drop: false }` [INFO] [stderr] Compiling rust_parser_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::os::unix::prelude::OsStrExt` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::unix::prelude::OsStrExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:633:29 [INFO] [stdout] | [INFO] [stdout] 633 | fn lex_number(input: &[u8], mut pos: usize) -> Result<(Token, usize), LexError> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interp` [INFO] [stdout] --> src/main.rs:706:13 [INFO] [stdout] | [INFO] [stdout] 706 | let mut interp = Interpreter::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_interp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:706:9 [INFO] [stdout] | [INFO] [stdout] 706 | let mut interp = Interpreter::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `show_diagnostic` is never used [INFO] [stdout] --> src/main.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 112 | impl InterpreterError { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 113 | fn show_diagnostic(&self, input: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `eval`, `eval_uniop`, and `eval_binop` are never used [INFO] [stdout] --> src/main.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 227 | impl Interpreter { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 232 | pub fn eval(&mut self, expr: &Ast) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn eval_uniop(&mut self, op: &UniOp, n: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | fn eval_binop(&mut self, op: &BinOp, l: i64, r: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DivisionByZero` is never constructed [INFO] [stdout] --> src/main.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 280 | enum InterpreterErrorKind { [INFO] [stdout] | -------------------- variant in this enum [INFO] [stdout] 281 | DivisionByZero, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InterpreterErrorKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `num` is never used [INFO] [stdout] --> src/main.rs:379:8 [INFO] [stdout] | [INFO] [stdout] 378 | impl Ast { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 379 | fn num(n: u64, loc: Loc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnexpectedToken` is never constructed [INFO] [stdout] --> src/main.rs:449:5 [INFO] [stdout] | [INFO] [stdout] 448 | enum ParseError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 449 | UnexpectedToken(Token), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustc16B5nd/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/rust_parser_example-9e5973f5e5cac842" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: collect2: fatal error: ld terminated with signal 7 [Bus error], core dumped [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_parser_example` (bin "rust_parser_example") due to 1 previous error; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "325e9b82d7640b167703187330cebf93650306f6831e5f07da2c95382e7b565d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "325e9b82d7640b167703187330cebf93650306f6831e5f07da2c95382e7b565d", kill_on_drop: false }` [INFO] [stdout] 325e9b82d7640b167703187330cebf93650306f6831e5f07da2c95382e7b565d