[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#8f21a5c92ea55c348c275a1bc4fedbdf181e0d64 for pr-143011
[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] 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] validating manifest of git repo https://github.com/Falvyu/rust-calc on toolchain 8f21a5c92ea55c348c275a1bc4fedbdf181e0d64
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 64217ef2871c003ac0fe4906b9de7d808894428ed71fe2574483e8ad9f061e95
[INFO] running `Command { std: "docker" "start" "-a" "64217ef2871c003ac0fe4906b9de7d808894428ed71fe2574483e8ad9f061e95", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "64217ef2871c003ac0fe4906b9de7d808894428ed71fe2574483e8ad9f061e95", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "64217ef2871c003ac0fe4906b9de7d808894428ed71fe2574483e8ad9f061e95", kill_on_drop: false }`
[INFO] [stdout] 64217ef2871c003ac0fe4906b9de7d808894428ed71fe2574483e8ad9f061e95
[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=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" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5998679a30bee826e014b0d69fb4b16ec09032815c8401af04b3fb759b78d667
[INFO] running `Command { std: "docker" "start" "-a" "5998679a30bee826e014b0d69fb4b16ec09032815c8401af04b3fb759b78d667", kill_on_drop: false }`
[INFO] [stderr]     Checking calc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `infix`
[INFO] [stdout]    --> src/ast.rs:135:27
[INFO] [stdout]     |
[INFO] [stdout] 135 |         fn push_op(&self, infix: &mut Vec<Rc<dyn Operation>>) {
[INFO] [stdout]     |                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_infix`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `x` is never read
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Number {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 12 |     x: i32,
[INFO] [stdout]    |     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Number` 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: function `fibonacci` is never used
[INFO] [stdout]   --> src/main.rs:41:4
[INFO] [stdout]    |
[INFO] [stdout] 41 | fn fibonacci(n: i32) -> i32{
[INFO] [stdout]    |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `CalcError` is never used
[INFO] [stdout]  --> src/ast.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub enum CalcError {
[INFO] [stdout]   |              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calc` is never used
[INFO] [stdout]   --> src/ast.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 |     pub fn calc(op: Rc<dyn Operation>) -> Result<i32, CalcError> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Operation` is never used
[INFO] [stdout]   --> src/ast.rs:43:15
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub trait Operation {
[INFO] [stdout]    |               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Add` is never constructed
[INFO] [stdout]   --> src/ast.rs:49:16
[INFO] [stdout]    |
[INFO] [stdout] 49 |     pub struct Add {
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Sub` is never constructed
[INFO] [stdout]   --> src/ast.rs:54:16
[INFO] [stdout]    |
[INFO] [stdout] 54 |     pub struct Sub {
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Mult` is never constructed
[INFO] [stdout]   --> src/ast.rs:59:16
[INFO] [stdout]    |
[INFO] [stdout] 59 |     pub struct Mult {
[INFO] [stdout]    |                ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Number` is never constructed
[INFO] [stdout]   --> src/ast.rs:64:16
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub struct Number {
[INFO] [stdout]    |                ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[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<dyn Operation>`, found `&Rc<Number>`
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&std::rc::Rc<dyn ast::ast::Operation>`
[INFO] [stdout]                found reference `&std::rc::Rc<ast::ast::Number>`
[INFO] [stdout]     = help: `ast::ast::Number` implements `Operation` so you could box the found value and coerce it to the trait object `Box<dyn Operation>`, you will have to change the expected type as well
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /rustc/8f21a5c92ea55c348c275a1bc4fedbdf181e0d64/library/core/src/clone.rs:204: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<dyn Operation>`, found `&Rc<Number>`
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&std::rc::Rc<dyn ast::ast::Operation>`
[INFO] [stdout]                found reference `&std::rc::Rc<ast::ast::Number>`
[INFO] [stdout]     = help: `ast::ast::Number` implements `Operation` so you could box the found value and coerce it to the trait object `Box<dyn Operation>`, you will have to change the expected type as well
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /rustc/8f21a5c92ea55c348c275a1bc4fedbdf181e0d64/library/core/src/clone.rs:204: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<dyn Operation>`, found `&Rc<Add>`
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&std::rc::Rc<dyn ast::ast::Operation>`
[INFO] [stdout]                found reference `&std::rc::Rc<ast::ast::Add>`
[INFO] [stdout]     = help: `ast::ast::Add` implements `Operation` so you could box the found value and coerce it to the trait object `Box<dyn Operation>`, you will have to change the expected type as well
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /rustc/8f21a5c92ea55c348c275a1bc4fedbdf181e0d64/library/core/src/clone.rs:204: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<dyn Operation>`, found `&Rc<Number>`
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&std::rc::Rc<dyn ast::ast::Operation>`
[INFO] [stdout]                found reference `&std::rc::Rc<ast::ast::Number>`
[INFO] [stdout]     = help: `ast::ast::Number` implements `Operation` so you could box the found value and coerce it to the trait object `Box<dyn Operation>`, you will have to change the expected type as well
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> /rustc/8f21a5c92ea55c348c275a1bc4fedbdf181e0d64/library/core/src/clone.rs:204:8
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `infix`
[INFO] [stdout]    --> src/ast.rs:135:27
[INFO] [stdout]     |
[INFO] [stdout] 135 |         fn push_op(&self, infix: &mut Vec<Rc<dyn Operation>>) {
[INFO] [stdout]     |                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_infix`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `expected`
[INFO] [stdout]    --> src/main.rs:112:13
[INFO] [stdout]     |
[INFO] [stdout] 112 |         let expected: Vec<Box<dyn Token>> = vec![
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result1`
[INFO] [stdout]    --> src/main.rs:120:13
[INFO] [stdout]     |
[INFO] [stdout] 120 |         let result1 = parse("2 + 2 * 3");
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result2`
[INFO] [stdout]    --> src/main.rs:121:13
[INFO] [stdout]     |
[INFO] [stdout] 121 |         let result2 = parse("2+2*3");
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result3`
[INFO] [stdout]    --> src/main.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |         let result3 = parse("2+2*6");
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result4`
[INFO] [stdout]    --> src/main.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |         let result4 = parse("2+2*66");
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result4`
[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; 6 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "5998679a30bee826e014b0d69fb4b16ec09032815c8401af04b3fb759b78d667", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5998679a30bee826e014b0d69fb4b16ec09032815c8401af04b3fb759b78d667", kill_on_drop: false }`
[INFO] [stdout] 5998679a30bee826e014b0d69fb4b16ec09032815c8401af04b3fb759b78d667
