[INFO] fetching crate mate-rs 0.1.4... [INFO] testing mate-rs-0.1.4 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate mate-rs 0.1.4 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate mate-rs 0.1.4 [INFO] finished tweaking crates.io crate mate-rs 0.1.4 [INFO] tweaked toml for crates.io crate mate-rs 0.1.4 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate mate-rs 0.1.4 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f671a8632bb673877d59dd654fd64c4e88046afb0e1922068eaca3583bd1f4b4 [INFO] running `Command { std: "docker" "start" "-a" "f671a8632bb673877d59dd654fd64c4e88046afb0e1922068eaca3583bd1f4b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f671a8632bb673877d59dd654fd64c4e88046afb0e1922068eaca3583bd1f4b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f671a8632bb673877d59dd654fd64c4e88046afb0e1922068eaca3583bd1f4b4", kill_on_drop: false }` [INFO] [stdout] f671a8632bb673877d59dd654fd64c4e88046afb0e1922068eaca3583bd1f4b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6508b7fb30cd406d2211dc466ca1cfef029e172e8d049ec28ae2bd2668ec3161 [INFO] running `Command { std: "docker" "start" "-a" "6508b7fb30cd406d2211dc466ca1cfef029e172e8d049ec28ae2bd2668ec3161", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling substring v1.4.5 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling mate-rs v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:45:70 [INFO] [stdout] | [INFO] [stdout] 45 | return Calculator::calculate(tokens[0].clone().sub, input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:52:60 [INFO] [stdout] | [INFO] [stdout] 52 | return Err(Error::missing_some_tokens(input.clone().to_string(), point)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:57:55 [INFO] [stdout] | [INFO] [stdout] 57 | return Err(Error::illeagal_token(input.clone().to_string(), token)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:63:74 [INFO] [stdout] | [INFO] [stdout] 63 | match Calculator::take_operation(i, tokens.clone(), input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:79:73 [INFO] [stdout] | [INFO] [stdout] 79 | y = match Calculator::calculate(token.clone().sub, input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:108:56 [INFO] [stdout] | [INFO] [stdout] 108 | return Err(Error::missing_some_tokens(input.clone().to_string(), point)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lexer.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | fn new(input: &'a str) -> Result { [INFO] [stdout] | -- ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 25 | fn new(input: &'a str) -> Result, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/mate.rs:17:41 [INFO] [stdout] | [INFO] [stdout] 17 | let sub = match Lexer::lex(input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/mate.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | Calculator::calculate(sub, input.clone()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.37s [INFO] running `Command { std: "docker" "inspect" "6508b7fb30cd406d2211dc466ca1cfef029e172e8d049ec28ae2bd2668ec3161", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6508b7fb30cd406d2211dc466ca1cfef029e172e8d049ec28ae2bd2668ec3161", kill_on_drop: false }` [INFO] [stdout] 6508b7fb30cd406d2211dc466ca1cfef029e172e8d049ec28ae2bd2668ec3161 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d59378e8029cc4153214d4baff791478ab7e55f3b09415e850d3d95463155e70 [INFO] running `Command { std: "docker" "start" "-a" "d59378e8029cc4153214d4baff791478ab7e55f3b09415e850d3d95463155e70", kill_on_drop: false }` [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:45:70 [INFO] [stdout] | [INFO] [stdout] 45 | return Calculator::calculate(tokens[0].clone().sub, input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:52:60 [INFO] [stdout] | [INFO] [stdout] 52 | return Err(Error::missing_some_tokens(input.clone().to_string(), point)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:57:55 [INFO] [stdout] | [INFO] [stdout] 57 | return Err(Error::illeagal_token(input.clone().to_string(), token)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:63:74 [INFO] [stdout] | [INFO] [stdout] 63 | match Calculator::take_operation(i, tokens.clone(), input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:79:73 [INFO] [stdout] | [INFO] [stdout] 79 | y = match Calculator::calculate(token.clone().sub, input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:108:56 [INFO] [stdout] | [INFO] [stdout] 108 | return Err(Error::missing_some_tokens(input.clone().to_string(), point)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lexer.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | fn new(input: &'a str) -> Result { [INFO] [stdout] | -- ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 25 | fn new(input: &'a str) -> Result, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/mate.rs:17:41 [INFO] [stdout] | [INFO] [stdout] 17 | let sub = match Lexer::lex(input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/mate.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | Calculator::calculate(sub, input.clone()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling mate-rs v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:45:70 [INFO] [stdout] | [INFO] [stdout] 45 | return Calculator::calculate(tokens[0].clone().sub, input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:52:60 [INFO] [stdout] | [INFO] [stdout] 52 | return Err(Error::missing_some_tokens(input.clone().to_string(), point)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:57:55 [INFO] [stdout] | [INFO] [stdout] 57 | return Err(Error::illeagal_token(input.clone().to_string(), token)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:63:74 [INFO] [stdout] | [INFO] [stdout] 63 | match Calculator::take_operation(i, tokens.clone(), input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:79:73 [INFO] [stdout] | [INFO] [stdout] 79 | y = match Calculator::calculate(token.clone().sub, input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:108:56 [INFO] [stdout] | [INFO] [stdout] 108 | return Err(Error::missing_some_tokens(input.clone().to_string(), point)); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:183:45 [INFO] [stdout] | [INFO] [stdout] 183 | let sub = match Lexer::lex(input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/calculator.rs:188:58 [INFO] [stdout] | [INFO] [stdout] 188 | let result = Calculator::calculate(sub, input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lexer.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | fn new(input: &'a str) -> Result { [INFO] [stdout] | -- ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 25 | fn new(input: &'a str) -> Result, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/mate.rs:17:41 [INFO] [stdout] | [INFO] [stdout] 17 | let sub = match Lexer::lex(input.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/mate.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | Calculator::calculate(sub, input.clone()) [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.33s [INFO] running `Command { std: "docker" "inspect" "d59378e8029cc4153214d4baff791478ab7e55f3b09415e850d3d95463155e70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d59378e8029cc4153214d4baff791478ab7e55f3b09415e850d3d95463155e70", kill_on_drop: false }` [INFO] [stdout] d59378e8029cc4153214d4baff791478ab7e55f3b09415e850d3d95463155e70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 37022d3c0677624cb11388b30bc7fec4ac1ea837f44b1c22b5f1439f5468d56b [INFO] running `Command { std: "docker" "start" "-a" "37022d3c0677624cb11388b30bc7fec4ac1ea837f44b1c22b5f1439f5468d56b", kill_on_drop: false }` [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/calculator.rs:45:70 [INFO] [stderr] | [INFO] [stderr] 45 | return Calculator::calculate(tokens[0].clone().sub, input.clone()); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/calculator.rs:52:60 [INFO] [stderr] | [INFO] [stderr] 52 | return Err(Error::missing_some_tokens(input.clone().to_string(), point)); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/calculator.rs:57:55 [INFO] [stderr] | [INFO] [stderr] 57 | return Err(Error::illeagal_token(input.clone().to_string(), token)); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/calculator.rs:63:74 [INFO] [stderr] | [INFO] [stderr] 63 | match Calculator::take_operation(i, tokens.clone(), input.clone()) { [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/calculator.rs:79:73 [INFO] [stderr] | [INFO] [stderr] 79 | y = match Calculator::calculate(token.clone().sub, input.clone()) { [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/calculator.rs:108:56 [INFO] [stderr] | [INFO] [stderr] 108 | return Err(Error::missing_some_tokens(input.clone().to_string(), point)); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/lexer.rs:25:38 [INFO] [stderr] | [INFO] [stderr] 25 | fn new(input: &'a str) -> Result { [INFO] [stderr] | -- ^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 25 | fn new(input: &'a str) -> Result, Error> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/mate.rs:17:41 [INFO] [stderr] | [INFO] [stderr] 17 | let sub = match Lexer::lex(input.clone()) { [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/mate.rs:22:41 [INFO] [stderr] | [INFO] [stderr] 22 | Calculator::calculate(sub, input.clone()) [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/calculator.rs:183:45 [INFO] [stderr] | [INFO] [stderr] 183 | let sub = match Lexer::lex(input.clone()) { [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/calculator.rs:188:58 [INFO] [stderr] | [INFO] [stderr] 188 | let result = Calculator::calculate(sub, input.clone()); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: `mate-rs` (lib) generated 9 warnings (run `cargo fix --lib -p mate-rs` to apply 9 suggestions) [INFO] [stderr] warning: `mate-rs` (lib test) generated 11 warnings (9 duplicates) (run `cargo fix --lib -p mate-rs --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mate_rs-f03fd1cd05c5783e) [INFO] [stdout] [INFO] [stdout] running 38 tests [INFO] [stdout] test errors::tests::empty_input ... ok [INFO] [stdout] test errors::tests::empty_tokens ... ok [INFO] [stdout] test errors::tests::new ... ok [INFO] [stdout] test errors::tests::to_string ... ok [INFO] [stdout] test lexer::test::new ... ok [INFO] [stdout] test monitor::tests::sub_to_string ... ok [INFO] [stdout] test monitor::tests::sub_type_to_string ... ok [INFO] [stdout] test monitor::tests::token_type_to_string ... ok [INFO] [stdout] test token::tests::empty ... ok [INFO] [stdout] test monitor::tests::token_to_string ... ok [INFO] [stdout] test token::tests::new_pointer ... ok [INFO] [stdout] test token::tests::is_lparen ... ok [INFO] [stdout] test calculator::tests::execute_operation ... ok [INFO] [stdout] test token::tests::new_sub_struct ... ok [INFO] [stdout] test token::tests::new ... ok [INFO] [stdout] test token::tests::is_rparen ... ok [INFO] [stdout] test token::tests::is_pointer ... ok [INFO] [stdout] test token::tests::unknown_index ... ok [INFO] [stdout] test token::tests::to_submethod ... ok [INFO] [stdout] test token::tests::is_labs ... ok [INFO] [stdout] test token::tests::take_pointer_index ... ok [INFO] [stdout] test token::tests::is_rabs ... ok [INFO] [stdout] test token::tests::is_sub_exp ... ok [INFO] [stdout] test token::tests::is_illegal ... ok [INFO] [stdout] test token::tests::is_power ... ok [INFO] [stdout] test token::tests::matchto ... ok [INFO] [stdout] test utils::tests::is_percentage ... ok [INFO] [stdout] test token::tests::from ... ok [INFO] [stdout] test utils::tests::is_div_or_prod ... ok [INFO] [stdout] test utils::tests::is_abs ... ok [INFO] [stdout] test utils::tests::is_point ... ok [INFO] [stdout] test token::tests::new_sub ... ok [INFO] [stdout] test utils::tests::is_number ... ok [INFO] [stdout] test utils::tests::is_plus_or_minus ... ok [INFO] [stdout] test utils::tests::is_parentheses ... ok [INFO] [stdout] test utils::tests::is_operation_sign ... ok [INFO] [stdout] test calculator::tests::calculate ... ok [INFO] [stdout] test lexer::test::lex ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 38 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.53s [INFO] [stdout] [INFO] [stderr] Doc-tests mate_rs [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 19) ... ok [INFO] [stdout] test src/lib.rs - (line 36) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.50s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "37022d3c0677624cb11388b30bc7fec4ac1ea837f44b1c22b5f1439f5468d56b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37022d3c0677624cb11388b30bc7fec4ac1ea837f44b1c22b5f1439f5468d56b", kill_on_drop: false }` [INFO] [stdout] 37022d3c0677624cb11388b30bc7fec4ac1ea837f44b1c22b5f1439f5468d56b