[INFO] cloning repository https://github.com/tamaroning/mini-rustc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tamaroning/mini-rustc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamaroning%2Fmini-rustc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamaroning%2Fmini-rustc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a97bcef5befa1746ed1cc405be69a3f4d8a14c6c [INFO] building tamaroning/mini-rustc against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamaroning%2Fmini-rustc" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tamaroning/mini-rustc on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-5-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/tamaroning/mini-rustc [INFO] finished tweaking git repo https://github.com/tamaroning/mini-rustc [INFO] tweaked toml for git repo https://github.com/tamaroning/mini-rustc written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tamaroning/mini-rustc 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ba7fb6cc79e37c49feb1436b5765f644da398716cb024b370dec57cb49c20c8a [INFO] running `Command { std: "docker" "start" "-a" "ba7fb6cc79e37c49feb1436b5765f644da398716cb024b370dec57cb49c20c8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba7fb6cc79e37c49feb1436b5765f644da398716cb024b370dec57cb49c20c8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba7fb6cc79e37c49feb1436b5765f644da398716cb024b370dec57cb49c20c8a", kill_on_drop: false }` [INFO] [stdout] ba7fb6cc79e37c49feb1436b5765f644da398716cb024b370dec57cb49c20c8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a1551710ceac1b00cab3593fad6d4a3a8d0fa9b6f4b54709d27ac19c0b581ab [INFO] running `Command { std: "docker" "start" "-a" "5a1551710ceac1b00cab3593fad6d4a3a8d0fa9b6f4b54709d27ac19c0b581ab", kill_on_drop: false }` [INFO] [stderr] Compiling mini-rustc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/ast/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Crate { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 24 | pub items: Vec, [INFO] [stdout] 25 | pub id: NodeId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Crate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/ast/mod.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Module { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub id: NodeId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Module` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/ast/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct StructItem { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 57 | pub id: NodeId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ext` and `id` are never read [INFO] [stdout] --> src/ast/mod.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Func { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | pub ext: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 67 | pub body: Option, [INFO] [stdout] 68 | pub id: NodeId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Func` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "5a1551710ceac1b00cab3593fad6d4a3a8d0fa9b6f4b54709d27ac19c0b581ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a1551710ceac1b00cab3593fad6d4a3a8d0fa9b6f4b54709d27ac19c0b581ab", kill_on_drop: false }` [INFO] [stdout] 5a1551710ceac1b00cab3593fad6d4a3a8d0fa9b6f4b54709d27ac19c0b581ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b6dbfae323416ef7413763023bf14b3a5ff654912e13ac8a356f387ac6ae2d3e [INFO] running `Command { std: "docker" "start" "-a" "b6dbfae323416ef7413763023bf14b3a5ff654912e13ac8a356f387ac6ae2d3e", kill_on_drop: false }` [INFO] [stderr] Compiling mini-rustc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: `main` has invalid return type `i32` [INFO] [stdout] --> examples/fibonacci.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | fn main() -> i32 { [INFO] [stdout] | ^^^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `i32` [INFO] [stdout] --> examples/struct.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() -> i32 { [INFO] [stdout] | ^^^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `Inner` is private [INFO] [stdout] --> examples/module.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | inner: a::Inner, [INFO] [stdout] | ^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `Inner` is defined here [INFO] [stdout] --> examples/module.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Inner { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mini-rustc` (example "fibonacci") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0603]: struct `Inner` is private [INFO] [stdout] --> examples/module.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | inner: a::Inner { x: 0 }, [INFO] [stdout] | ^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `Inner` is defined here [INFO] [stdout] --> examples/module.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Inner { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mini-rustc` (example "struct") due to 1 previous error [INFO] [stdout] error[E0277]: `main` has invalid return type `i32` [INFO] [stdout] --> examples/module.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | fn main() -> i32 { [INFO] [stdout] | ^^^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `x` of struct `Inner` is private [INFO] [stdout] --> examples/module.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | l.inner.x [INFO] [stdout] | ^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0603, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mini-rustc` (example "module") due to 4 previous errors [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/ast/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Crate { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 24 | pub items: Vec, [INFO] [stdout] 25 | pub id: NodeId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Crate` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/ast/mod.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Module { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub id: NodeId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Module` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/ast/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct StructItem { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 57 | pub id: NodeId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ext` and `id` are never read [INFO] [stdout] --> src/ast/mod.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct Func { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 66 | pub ext: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 67 | pub body: Option, [INFO] [stdout] 68 | pub id: NodeId, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Func` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b6dbfae323416ef7413763023bf14b3a5ff654912e13ac8a356f387ac6ae2d3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6dbfae323416ef7413763023bf14b3a5ff654912e13ac8a356f387ac6ae2d3e", kill_on_drop: false }` [INFO] [stdout] b6dbfae323416ef7413763023bf14b3a5ff654912e13ac8a356f387ac6ae2d3e