[INFO] fetching crate filter_ast 0.2.1... [INFO] checking filter_ast-0.2.1 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate filter_ast 0.2.1 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate filter_ast 0.2.1 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate filter_ast 0.2.1 [INFO] finished tweaking crates.io crate filter_ast 0.2.1 [INFO] tweaked toml for crates.io crate filter_ast 0.2.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate crates.io crate filter_ast 0.2.1 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f36c96924e6d443d541750c4eaa2be74a1997d95d67d4c1e2803493b45e517b3 [INFO] running `Command { std: "docker" "start" "-a" "f36c96924e6d443d541750c4eaa2be74a1997d95d67d4c1e2803493b45e517b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f36c96924e6d443d541750c4eaa2be74a1997d95d67d4c1e2803493b45e517b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f36c96924e6d443d541750c4eaa2be74a1997d95d67d4c1e2803493b45e517b3", kill_on_drop: false }` [INFO] [stdout] f36c96924e6d443d541750c4eaa2be74a1997d95d67d4c1e2803493b45e517b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64575157857de122c95bd6268d69944a21857cf2fce2aa04a622952252300051 [INFO] running `Command { std: "docker" "start" "-a" "64575157857de122c95bd6268d69944a21857cf2fce2aa04a622952252300051", kill_on_drop: false }` [INFO] [stderr] Checking filter_ast v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/visit.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | std::mem::drop(clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&Clause` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 12 - std::mem::drop(clause); [INFO] [stdout] 12 + let _ = clause; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tag` is never constructed [INFO] [stdout] --> examples/schema_validation.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Field { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 7 | Name, [INFO] [stdout] 8 | Tag, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/schema_validation.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Operand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 21 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/schema_validation.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | IpAddr(IpAddr), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Operand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 | IpAddr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `seen` and `expected` are never read [INFO] [stdout] --> examples/schema_validation.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 65 | InvalidOperator { [INFO] [stdout] | --------------- fields in this variant [INFO] [stdout] 66 | seen: Operator, [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | expected: &'static [Operator], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClauseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/schema_validation.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | Parse(AddrParseError), [INFO] [stdout] | ----- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ClauseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 69 | Parse(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `error` and `path` are never read [INFO] [stdout] --> examples/schema_validation.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 88 | struct Error { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 89 | error: ClauseError, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 90 | /// Path to clause, expressed as tree rule indices starting from the root [INFO] [stdout] 91 | path: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/visit.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | std::mem::drop(clause); [INFO] [stdout] | ^^^^^^^^^^^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&Clause` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 12 - std::mem::drop(clause); [INFO] [stdout] 12 + let _ = clause; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:607:42 [INFO] [stdout] | [INFO] [stdout] 607 | clause.operator().clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:608:41 [INFO] [stdout] | [INFO] [stdout] 608 | clause.operand().clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:612:42 [INFO] [stdout] | [INFO] [stdout] 612 | clause.operator().clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:613:41 [INFO] [stdout] | [INFO] [stdout] 613 | clause.operand().clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:617:42 [INFO] [stdout] | [INFO] [stdout] 617 | clause.operator().clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:618:41 [INFO] [stdout] | [INFO] [stdout] 618 | clause.operand().clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:622:42 [INFO] [stdout] | [INFO] [stdout] 622 | clause.operator().clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/lib.rs:623:41 [INFO] [stdout] | [INFO] [stdout] 623 | clause.operand().clone(), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.45s [INFO] running `Command { std: "docker" "inspect" "64575157857de122c95bd6268d69944a21857cf2fce2aa04a622952252300051", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64575157857de122c95bd6268d69944a21857cf2fce2aa04a622952252300051", kill_on_drop: false }` [INFO] [stdout] 64575157857de122c95bd6268d69944a21857cf2fce2aa04a622952252300051