[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 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFalvyu%2Frust-calc" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Falvyu/rust-calc on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "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-4-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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 19ca73326ea655221472cbbc4bcf73f563eef7f5b9154a9039dc01514c4370cc [INFO] running `Command { std: "docker" "start" "-a" "19ca73326ea655221472cbbc4bcf73f563eef7f5b9154a9039dc01514c4370cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "19ca73326ea655221472cbbc4bcf73f563eef7f5b9154a9039dc01514c4370cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19ca73326ea655221472cbbc4bcf73f563eef7f5b9154a9039dc01514c4370cc", kill_on_drop: false }` [INFO] [stdout] 19ca73326ea655221472cbbc4bcf73f563eef7f5b9154a9039dc01514c4370cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ecfed6ecd87f96ef907ae64e89664a4286de4054bb18c52d01bb8f59b42a2df [INFO] running `Command { std: "docker" "start" "-a" "4ecfed6ecd87f96ef907ae64e89664a4286de4054bb18c52d01bb8f59b42a2df", 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/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/clone.rs:160: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/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/clone.rs:160: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/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/clone.rs:160: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/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/clone.rs:160:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [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 5 previous errors [INFO] running `Command { std: "docker" "inspect" "4ecfed6ecd87f96ef907ae64e89664a4286de4054bb18c52d01bb8f59b42a2df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ecfed6ecd87f96ef907ae64e89664a4286de4054bb18c52d01bb8f59b42a2df", kill_on_drop: false }` [INFO] [stdout] 4ecfed6ecd87f96ef907ae64e89664a4286de4054bb18c52d01bb8f59b42a2df