[INFO] cloning repository https://github.com/Kazox61/Rustpiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kazox61/Rustpiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKazox61%2FRustpiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKazox61%2FRustpiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2cc95b10dd286c53084802d56bd0c3058de2a095 [INFO] building Kazox61/Rustpiler against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKazox61%2FRustpiler" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Kazox61/Rustpiler on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Kazox61/Rustpiler [INFO] finished tweaking git repo https://github.com/Kazox61/Rustpiler [INFO] tweaked toml for git repo https://github.com/Kazox61/Rustpiler written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Kazox61/Rustpiler 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe3bfbcb95dbbbfabe15befa772b4fcf1b7be0678aff90030b4c9d24df5a2f2a [INFO] running `Command { std: "docker" "start" "-a" "fe3bfbcb95dbbbfabe15befa772b4fcf1b7be0678aff90030b4c9d24df5a2f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe3bfbcb95dbbbfabe15befa772b4fcf1b7be0678aff90030b4c9d24df5a2f2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe3bfbcb95dbbbfabe15befa772b4fcf1b7be0678aff90030b4c9d24df5a2f2a", kill_on_drop: false }` [INFO] [stdout] fe3bfbcb95dbbbfabe15befa772b4fcf1b7be0678aff90030b4c9d24df5a2f2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b53a7daa9811e66adc1b288f1a3ff2963f51a05bf1c21b07c66cd3f0032c014d [INFO] running `Command { std: "docker" "start" "-a" "b53a7daa9811e66adc1b288f1a3ff2963f51a05bf1c21b07c66cd3f0032c014d", kill_on_drop: false }` [INFO] [stderr] Compiling hydrogen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:565:15 [INFO] [stdout] | [INFO] [stdout] 565 | while ( [INFO] [stdout] | _______________^ [INFO] [stdout] 566 | | *peek_token == TokenType::LessThan || [INFO] [stdout] | |____________^ [INFO] [stdout] ... [INFO] [stdout] 569 | *peek_token == TokenType::GreaterThanOrEqual [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 570 | | ) { [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 565 ~ while *peek_token == TokenType::LessThan || [INFO] [stdout] 566 | *peek_token == TokenType::GreaterThan || [INFO] [stdout] 567 | *peek_token == TokenType::LessThanOrEqual || [INFO] [stdout] 568 ~ *peek_token == TokenType::GreaterThanOrEqual { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Break` is never constructed [INFO] [stdout] --> src/tokenizer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum KeywordType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | Break [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/tokenizer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 12 | Any, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 204 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 204 - Some(value) => value.clone(), [INFO] [stdout] 204 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:219:33 [INFO] [stdout] | [INFO] [stdout] 219 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 219 - Some(value) => value.clone(), [INFO] [stdout] 219 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:229:33 [INFO] [stdout] | [INFO] [stdout] 229 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 229 - Some(value) => value.clone(), [INFO] [stdout] 229 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:239:33 [INFO] [stdout] | [INFO] [stdout] 239 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 239 - Some(value) => value.clone(), [INFO] [stdout] 239 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:249:33 [INFO] [stdout] | [INFO] [stdout] 249 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 249 - Some(value) => value.clone(), [INFO] [stdout] 249 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:262:43 [INFO] [stdout] | [INFO] [stdout] 262 | Some(token_type) => token_type.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 262 - Some(token_type) => token_type.clone() [INFO] [stdout] 262 + Some(token_type) => token_type [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:274:47 [INFO] [stdout] | [INFO] [stdout] 274 | Some(token_type) => token_type.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 274 - Some(token_type) => token_type.clone() [INFO] [stdout] 274 + Some(token_type) => token_type [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:279:33 [INFO] [stdout] | [INFO] [stdout] 279 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 279 - Some(value) => value.clone(), [INFO] [stdout] 279 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:322:33 [INFO] [stdout] | [INFO] [stdout] 322 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 322 - Some(value) => value.clone(), [INFO] [stdout] 322 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:342:33 [INFO] [stdout] | [INFO] [stdout] 342 | Some(value) => value.clone() , [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 342 - Some(value) => value.clone() , [INFO] [stdout] 342 + Some(value) => value , [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:355:33 [INFO] [stdout] | [INFO] [stdout] 355 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 355 - Some(value) => value.clone(), [INFO] [stdout] 355 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:373:33 [INFO] [stdout] | [INFO] [stdout] 373 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 373 - Some(value) => value.clone(), [INFO] [stdout] 373 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:383:33 [INFO] [stdout] | [INFO] [stdout] 383 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 383 - Some(value) => value.clone(), [INFO] [stdout] 383 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:408:33 [INFO] [stdout] | [INFO] [stdout] 408 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 408 - Some(value) => value.clone(), [INFO] [stdout] 408 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:443:33 [INFO] [stdout] | [INFO] [stdout] 443 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 443 - Some(token) => token.clone() [INFO] [stdout] 443 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:451:37 [INFO] [stdout] | [INFO] [stdout] 451 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 451 - Some(token) => token.clone() [INFO] [stdout] 451 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:465:37 [INFO] [stdout] | [INFO] [stdout] 465 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 465 - Some(token) => token.clone() [INFO] [stdout] 465 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:482:33 [INFO] [stdout] | [INFO] [stdout] 482 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 482 - Some(token) => token.clone() [INFO] [stdout] 482 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:490:37 [INFO] [stdout] | [INFO] [stdout] 490 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 490 - Some(token) => token.clone() [INFO] [stdout] 490 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:504:37 [INFO] [stdout] | [INFO] [stdout] 504 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 504 - Some(token) => token.clone() [INFO] [stdout] 504 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:521:33 [INFO] [stdout] | [INFO] [stdout] 521 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 521 - Some(token) => token.clone() [INFO] [stdout] 521 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:529:37 [INFO] [stdout] | [INFO] [stdout] 529 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 529 - Some(token) => token.clone() [INFO] [stdout] 529 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:543:37 [INFO] [stdout] | [INFO] [stdout] 543 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 543 - Some(token) => token.clone() [INFO] [stdout] 543 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:560:33 [INFO] [stdout] | [INFO] [stdout] 560 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 560 - Some(token) => token.clone() [INFO] [stdout] 560 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:573:37 [INFO] [stdout] | [INFO] [stdout] 573 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 573 - Some(token) => token.clone() [INFO] [stdout] 573 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:587:37 [INFO] [stdout] | [INFO] [stdout] 587 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 587 - Some(token) => token.clone() [INFO] [stdout] 587 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:604:33 [INFO] [stdout] | [INFO] [stdout] 604 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 604 - Some(token) => token.clone() [INFO] [stdout] 604 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:612:37 [INFO] [stdout] | [INFO] [stdout] 612 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 612 - Some(token) => token.clone() [INFO] [stdout] 612 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:626:37 [INFO] [stdout] | [INFO] [stdout] 626 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 626 - Some(token) => token.clone() [INFO] [stdout] 626 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:650:37 [INFO] [stdout] | [INFO] [stdout] 650 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 650 - Some(token) => token.clone() [INFO] [stdout] 650 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:677:33 [INFO] [stdout] | [INFO] [stdout] 677 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 677 - Some(token) => token.clone() [INFO] [stdout] 677 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unOp` should have a snake case name [INFO] [stdout] --> src/parser.rs:701:18 [INFO] [stdout] | [INFO] [stdout] 701 | Some(unOp) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `un_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] running `Command { std: "docker" "inspect" "b53a7daa9811e66adc1b288f1a3ff2963f51a05bf1c21b07c66cd3f0032c014d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b53a7daa9811e66adc1b288f1a3ff2963f51a05bf1c21b07c66cd3f0032c014d", kill_on_drop: false }` [INFO] [stdout] b53a7daa9811e66adc1b288f1a3ff2963f51a05bf1c21b07c66cd3f0032c014d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2665bdcbd0161c4a24d54f14da400510b2121b48ce089a78965146b91bf72fe0 [INFO] running `Command { std: "docker" "start" "-a" "2665bdcbd0161c4a24d54f14da400510b2121b48ce089a78965146b91bf72fe0", kill_on_drop: false }` [INFO] [stderr] Compiling hydrogen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:565:15 [INFO] [stdout] | [INFO] [stdout] 565 | while ( [INFO] [stdout] | _______________^ [INFO] [stdout] 566 | | *peek_token == TokenType::LessThan || [INFO] [stdout] | |____________^ [INFO] [stdout] ... [INFO] [stdout] 569 | *peek_token == TokenType::GreaterThanOrEqual [INFO] [stdout] | _____________________________________________________________^ [INFO] [stdout] 570 | | ) { [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 565 ~ while *peek_token == TokenType::LessThan || [INFO] [stdout] 566 | *peek_token == TokenType::GreaterThan || [INFO] [stdout] 567 | *peek_token == TokenType::LessThanOrEqual || [INFO] [stdout] 568 ~ *peek_token == TokenType::GreaterThanOrEqual { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Break` is never constructed [INFO] [stdout] --> src/tokenizer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum KeywordType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | Break [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Any` is never constructed [INFO] [stdout] --> src/tokenizer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 12 | Any, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 204 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 204 - Some(value) => value.clone(), [INFO] [stdout] 204 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:219:33 [INFO] [stdout] | [INFO] [stdout] 219 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 219 - Some(value) => value.clone(), [INFO] [stdout] 219 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:229:33 [INFO] [stdout] | [INFO] [stdout] 229 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 229 - Some(value) => value.clone(), [INFO] [stdout] 229 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:239:33 [INFO] [stdout] | [INFO] [stdout] 239 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 239 - Some(value) => value.clone(), [INFO] [stdout] 239 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:249:33 [INFO] [stdout] | [INFO] [stdout] 249 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 249 - Some(value) => value.clone(), [INFO] [stdout] 249 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:262:43 [INFO] [stdout] | [INFO] [stdout] 262 | Some(token_type) => token_type.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 262 - Some(token_type) => token_type.clone() [INFO] [stdout] 262 + Some(token_type) => token_type [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:274:47 [INFO] [stdout] | [INFO] [stdout] 274 | Some(token_type) => token_type.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 274 - Some(token_type) => token_type.clone() [INFO] [stdout] 274 + Some(token_type) => token_type [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:279:33 [INFO] [stdout] | [INFO] [stdout] 279 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 279 - Some(value) => value.clone(), [INFO] [stdout] 279 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:322:33 [INFO] [stdout] | [INFO] [stdout] 322 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 322 - Some(value) => value.clone(), [INFO] [stdout] 322 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:342:33 [INFO] [stdout] | [INFO] [stdout] 342 | Some(value) => value.clone() , [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 342 - Some(value) => value.clone() , [INFO] [stdout] 342 + Some(value) => value , [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:355:33 [INFO] [stdout] | [INFO] [stdout] 355 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 355 - Some(value) => value.clone(), [INFO] [stdout] 355 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:373:33 [INFO] [stdout] | [INFO] [stdout] 373 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 373 - Some(value) => value.clone(), [INFO] [stdout] 373 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:383:33 [INFO] [stdout] | [INFO] [stdout] 383 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 383 - Some(value) => value.clone(), [INFO] [stdout] 383 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:408:33 [INFO] [stdout] | [INFO] [stdout] 408 | Some(value) => value.clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 408 - Some(value) => value.clone(), [INFO] [stdout] 408 + Some(value) => value, [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:443:33 [INFO] [stdout] | [INFO] [stdout] 443 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 443 - Some(token) => token.clone() [INFO] [stdout] 443 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:451:37 [INFO] [stdout] | [INFO] [stdout] 451 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 451 - Some(token) => token.clone() [INFO] [stdout] 451 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:465:37 [INFO] [stdout] | [INFO] [stdout] 465 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 465 - Some(token) => token.clone() [INFO] [stdout] 465 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:482:33 [INFO] [stdout] | [INFO] [stdout] 482 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 482 - Some(token) => token.clone() [INFO] [stdout] 482 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:490:37 [INFO] [stdout] | [INFO] [stdout] 490 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 490 - Some(token) => token.clone() [INFO] [stdout] 490 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:504:37 [INFO] [stdout] | [INFO] [stdout] 504 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 504 - Some(token) => token.clone() [INFO] [stdout] 504 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:521:33 [INFO] [stdout] | [INFO] [stdout] 521 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 521 - Some(token) => token.clone() [INFO] [stdout] 521 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:529:37 [INFO] [stdout] | [INFO] [stdout] 529 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 529 - Some(token) => token.clone() [INFO] [stdout] 529 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:543:37 [INFO] [stdout] | [INFO] [stdout] 543 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 543 - Some(token) => token.clone() [INFO] [stdout] 543 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:560:33 [INFO] [stdout] | [INFO] [stdout] 560 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 560 - Some(token) => token.clone() [INFO] [stdout] 560 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:573:37 [INFO] [stdout] | [INFO] [stdout] 573 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 573 - Some(token) => token.clone() [INFO] [stdout] 573 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:587:37 [INFO] [stdout] | [INFO] [stdout] 587 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 587 - Some(token) => token.clone() [INFO] [stdout] 587 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:604:33 [INFO] [stdout] | [INFO] [stdout] 604 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 604 - Some(token) => token.clone() [INFO] [stdout] 604 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:612:37 [INFO] [stdout] | [INFO] [stdout] 612 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 612 - Some(token) => token.clone() [INFO] [stdout] 612 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:626:37 [INFO] [stdout] | [INFO] [stdout] 626 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 626 - Some(token) => token.clone() [INFO] [stdout] 626 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:650:37 [INFO] [stdout] | [INFO] [stdout] 650 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 650 - Some(token) => token.clone() [INFO] [stdout] 650 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:677:33 [INFO] [stdout] | [INFO] [stdout] 677 | Some(token) => token.clone() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TokenType` does not implement `Clone`, so calling `clone` on `&TokenType` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 677 - Some(token) => token.clone() [INFO] [stdout] 677 + Some(token) => token [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TokenType`, implement `Clone` for it [INFO] [stdout] --> src/tokenizer.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub enum TokenType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unOp` should have a snake case name [INFO] [stdout] --> src/parser.rs:701:18 [INFO] [stdout] | [INFO] [stdout] 701 | Some(unOp) => { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `un_op` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "2665bdcbd0161c4a24d54f14da400510b2121b48ce089a78965146b91bf72fe0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2665bdcbd0161c4a24d54f14da400510b2121b48ce089a78965146b91bf72fe0", kill_on_drop: false }` [INFO] [stdout] 2665bdcbd0161c4a24d54f14da400510b2121b48ce089a78965146b91bf72fe0