[INFO] cloning repository https://github.com/Falvyu/rust-calc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Falvyu/rust-calc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFalvyu%2Frust-calc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFalvyu%2Frust-calc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b7a3238dddb908d8582ac71d5d21999255a49394 [INFO] checking Falvyu/rust-calc/b7a3238dddb908d8582ac71d5d21999255a49394 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFalvyu%2Frust-calc" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Falvyu/rust-calc on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Falvyu/rust-calc [INFO] finished tweaking git repo https://github.com/Falvyu/rust-calc [INFO] tweaked toml for git repo https://github.com/Falvyu/rust-calc written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Falvyu/rust-calc 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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 40ceab2ebccea18ff0713c58fc3e19c0afa9f1cff7d518753faa9c5124357832 [INFO] running `Command { std: "docker" "start" "-a" "40ceab2ebccea18ff0713c58fc3e19c0afa9f1cff7d518753faa9c5124357832", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "40ceab2ebccea18ff0713c58fc3e19c0afa9f1cff7d518753faa9c5124357832", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40ceab2ebccea18ff0713c58fc3e19c0afa9f1cff7d518753faa9c5124357832", kill_on_drop: false }` [INFO] [stdout] 40ceab2ebccea18ff0713c58fc3e19c0afa9f1cff7d518753faa9c5124357832 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 583d0d41a783839343169079bf701b56d292c651a0b13657b3f99dc388b2218f [INFO] running `Command { std: "docker" "start" "-a" "583d0d41a783839343169079bf701b56d292c651a0b13657b3f99dc388b2218f", kill_on_drop: false }` [INFO] [stderr] Checking calc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ast.rs:163:33 [INFO] [stdout] | [INFO] [stdout] 163 | left: Rc::clone(&n1), [INFO] [stdout] | --------- ^^^ expected `&Rc`, found `&Rc` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&std::rc::Rc` [INFO] [stdout] found reference `&std::rc::Rc` [INFO] [stdout] = help: `ast::ast::Number` implements `Operation` so you could box the found value and coerce it to the trait object `Box`, you will have to change the expected type as well [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/clone.rs:165:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ast.rs:164:34 [INFO] [stdout] | [INFO] [stdout] 164 | right: Rc::clone(&n2) [INFO] [stdout] | --------- ^^^ expected `&Rc`, found `&Rc` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&std::rc::Rc` [INFO] [stdout] found reference `&std::rc::Rc` [INFO] [stdout] = help: `ast::ast::Number` implements `Operation` so you could box the found value and coerce it to the trait object `Box`, you will have to change the expected type as well [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/clone.rs:165:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ast.rs:169:33 [INFO] [stdout] | [INFO] [stdout] 169 | left: Rc::clone(&a1), [INFO] [stdout] | --------- ^^^ expected `&Rc`, found `&Rc` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&std::rc::Rc` [INFO] [stdout] found reference `&std::rc::Rc` [INFO] [stdout] = help: `ast::ast::Add` implements `Operation` so you could box the found value and coerce it to the trait object `Box`, you will have to change the expected type as well [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/clone.rs:165:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ast.rs:170:34 [INFO] [stdout] | [INFO] [stdout] 170 | right: Rc::clone(&n3) [INFO] [stdout] | --------- ^^^ expected `&Rc`, found `&Rc` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&std::rc::Rc` [INFO] [stdout] found reference `&std::rc::Rc` [INFO] [stdout] = help: `ast::ast::Number` implements `Operation` so you could box the found value and coerce it to the trait object `Box`, you will have to change the expected type as well [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/ff1737bb00913444173658b4e0b274fd79aabf66/library/core/src/clone.rs:165:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `calc` (bin "calc" test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "583d0d41a783839343169079bf701b56d292c651a0b13657b3f99dc388b2218f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "583d0d41a783839343169079bf701b56d292c651a0b13657b3f99dc388b2218f", kill_on_drop: false }` [INFO] [stdout] 583d0d41a783839343169079bf701b56d292c651a0b13657b3f99dc388b2218f