[INFO] fetching crate mate-rs 0.1.4... [INFO] testing mate-rs-0.1.4 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate mate-rs 0.1.4 into /workspace/builds/worker-7-tc1/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-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate mate-rs 0.1.4 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded substring v1.4.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 46a3070fa5179617a68af7a7ba3ce1ae9146ddef609c775eb25082cdef9efc45 [INFO] running `Command { std: "docker" "start" "-a" "46a3070fa5179617a68af7a7ba3ce1ae9146ddef609c775eb25082cdef9efc45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46a3070fa5179617a68af7a7ba3ce1ae9146ddef609c775eb25082cdef9efc45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46a3070fa5179617a68af7a7ba3ce1ae9146ddef609c775eb25082cdef9efc45", kill_on_drop: false }` [INFO] [stdout] 46a3070fa5179617a68af7a7ba3ce1ae9146ddef609c775eb25082cdef9efc45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c9aec46bde54a7371857a11e1ea8c1d159f6bf2d9cf68d6dc1e1277dcc36a47 [INFO] running `Command { std: "docker" "start" "-a" "8c9aec46bde54a7371857a11e1ea8c1d159f6bf2d9cf68d6dc1e1277dcc36a47", kill_on_drop: false }` [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling substring v1.4.5 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling regex v1.11.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 13.57s [INFO] running `Command { std: "docker" "inspect" "8c9aec46bde54a7371857a11e1ea8c1d159f6bf2d9cf68d6dc1e1277dcc36a47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c9aec46bde54a7371857a11e1ea8c1d159f6bf2d9cf68d6dc1e1277dcc36a47", kill_on_drop: false }` [INFO] [stdout] 8c9aec46bde54a7371857a11e1ea8c1d159f6bf2d9cf68d6dc1e1277dcc36a47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52fb261bde2e189ad211696742c3037236e7286bb79f87a8cb554d65ac557518 [INFO] running `Command { std: "docker" "start" "-a" "52fb261bde2e189ad211696742c3037236e7286bb79f87a8cb554d65ac557518", kill_on_drop: false }` [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] [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 2.09s [INFO] running `Command { std: "docker" "inspect" "52fb261bde2e189ad211696742c3037236e7286bb79f87a8cb554d65ac557518", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52fb261bde2e189ad211696742c3037236e7286bb79f87a8cb554d65ac557518", kill_on_drop: false }` [INFO] [stdout] 52fb261bde2e189ad211696742c3037236e7286bb79f87a8cb554d65ac557518 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 09e156d54456a9b8e083b08741f00b90b73ad626b219f5f425f18d147c638dbf [INFO] running `Command { std: "docker" "start" "-a" "09e156d54456a9b8e083b08741f00b90b73ad626b219f5f425f18d147c638dbf", 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: `mate-rs` (lib) generated 9 warnings (run `cargo fix --lib -p mate-rs` to apply 9 suggestions) [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 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-1ab0b9aedbc21a51) [INFO] [stdout] [INFO] [stdout] running 38 tests [INFO] [stdout] test errors::tests::empty_input ... ok [INFO] [stdout] test calculator::tests::execute_operation ... 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::token_type_to_string ... ok [INFO] [stdout] test token::tests::empty ... ok [INFO] [stdout] test errors::tests::empty_tokens ... ok [INFO] [stdout] test monitor::tests::sub_to_string ... ok [INFO] [stdout] test monitor::tests::sub_type_to_string ... ok [INFO] [stdout] test token::tests::is_labs ... ok [INFO] [stdout] test monitor::tests::token_to_string ... ok [INFO] [stdout] test token::tests::is_power ... ok [INFO] [stdout] test token::tests::is_illegal ... ok [INFO] [stdout] test token::tests::is_lparen ... ok [INFO] [stdout] test token::tests::is_pointer ... ok [INFO] [stdout] test token::tests::is_rabs ... ok [INFO] [stdout] test token::tests::is_rparen ... ok [INFO] [stdout] test token::tests::new_pointer ... ok [INFO] [stdout] test token::tests::new ... ok [INFO] [stdout] test token::tests::new_sub_struct ... ok [INFO] [stdout] test token::tests::take_pointer_index ... ok [INFO] [stdout] test token::tests::to_submethod ... ok [INFO] [stdout] test token::tests::is_sub_exp ... ok [INFO] [stdout] test token::tests::matchto ... ok [INFO] [stdout] test token::tests::new_sub ... ok [INFO] [stdout] test utils::tests::is_div_or_prod ... ok [INFO] [stdout] test utils::tests::is_abs ... ok [INFO] [stdout] test token::tests::unknown_index ... ok [INFO] [stdout] test utils::tests::is_plus_or_minus ... ok [INFO] [stdout] test utils::tests::is_point ... ok [INFO] [stdout] test utils::tests::is_parentheses ... ok [INFO] [stdout] test utils::tests::is_percentage ... ok [INFO] [stdout] test token::tests::from ... ok [INFO] [stdout] test utils::tests::is_number ... 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] [stderr] Doc-tests mate_rs [INFO] [stdout] [INFO] [stdout] test result: ok. 38 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.90s [INFO] [stdout] [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.68s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "09e156d54456a9b8e083b08741f00b90b73ad626b219f5f425f18d147c638dbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09e156d54456a9b8e083b08741f00b90b73ad626b219f5f425f18d147c638dbf", kill_on_drop: false }` [INFO] [stdout] 09e156d54456a9b8e083b08741f00b90b73ad626b219f5f425f18d147c638dbf