[INFO] fetching crate view-types 0.2.1... [INFO] checking view-types-0.2.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate view-types 0.2.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate view-types 0.2.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate view-types 0.2.1 [INFO] tweaked toml for crates.io crate view-types 0.2.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate view-types 0.2.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate view-types 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa785eeda2c73e376f175a745360357bf1d7bc9f84cd84a08201a8f83299d19e [INFO] running `Command { std: "docker" "start" "-a" "aa785eeda2c73e376f175a745360357bf1d7bc9f84cd84a08201a8f83299d19e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa785eeda2c73e376f175a745360357bf1d7bc9f84cd84a08201a8f83299d19e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa785eeda2c73e376f175a745360357bf1d7bc9f84cd84a08201a8f83299d19e", kill_on_drop: false }` [INFO] [stdout] aa785eeda2c73e376f175a745360357bf1d7bc9f84cd84a08201a8f83299d19e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04ae19b5bed2aa754ab0d57a9bc6b4d2fd053ff3275d17ed99aab62693185c24 [INFO] running `Command { std: "docker" "start" "-a" "04ae19b5bed2aa754ab0d57a9bc6b4d2fd053ff3275d17ed99aab62693185c24", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling prettyplease v0.2.32 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Checking quote v1.0.40 [INFO] [stderr] Checking syn v2.0.101 [INFO] [stderr] Checking view-types v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling bon-macros v3.6.3 [INFO] [stderr] Checking bon v3.6.3 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/mod.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let mut opt_ref = Some(&bind1); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/mod.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let mut opt_mut = Some(&mut bind2); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut mut_opt = &mut bind3; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/mod.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut mut_opt_ref = &mut bind6; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut ref_opt_mut = &Some(&mut bind7); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `builder::KeywordSearch` is more private than the item `builder::SearchVariant::KeywordSearch::0` [INFO] [stdout] --> tests/mod.rs:307:14 [INFO] [stdout] | [INFO] [stdout] 307 | view KeywordSearch { [INFO] [stdout] | ^^^^^^^^^^^^^ field `builder::SearchVariant::KeywordSearch::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `builder::KeywordSearch` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/mod.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 294 | / #[views( [INFO] [stdout] 295 | | frag all { [INFO] [stdout] 296 | | offset, [INFO] [stdout] 297 | | limit, [INFO] [stdout] ... | [INFO] [stdout] 307 | | view KeywordSearch { [INFO] [stdout] | |__________________________^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `views` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `builder::SemanticSearch<'a>` is more private than the item `builder::SearchVariant::SemanticSearch::0` [INFO] [stdout] --> tests/mod.rs:311:14 [INFO] [stdout] | [INFO] [stdout] 311 | view SemanticSearch<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ field `builder::SearchVariant::SemanticSearch::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `builder::SemanticSearch<'a>` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/mod.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 294 | / #[views( [INFO] [stdout] 295 | | frag all { [INFO] [stdout] 296 | | offset, [INFO] [stdout] 297 | | limit, [INFO] [stdout] ... | [INFO] [stdout] 311 | | view SemanticSearch<'a> { [INFO] [stdout] | |___________________________^ [INFO] [stdout] = note: this warning originates in the attribute macro `views` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `builder::HybridSearch<'a>` is more private than the item `builder::SearchVariant::HybridSearch::0` [INFO] [stdout] --> tests/mod.rs:315:14 [INFO] [stdout] | [INFO] [stdout] 315 | view HybridSearch<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ field `builder::SearchVariant::HybridSearch::0` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `builder::HybridSearch<'a>` is only usable at visibility `pub(self)` [INFO] [stdout] --> tests/mod.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 294 | / #[views( [INFO] [stdout] 295 | | frag all { [INFO] [stdout] 296 | | offset, [INFO] [stdout] 297 | | limit, [INFO] [stdout] ... | [INFO] [stdout] 315 | | view HybridSearch<'a> { [INFO] [stdout] | |_________________________^ [INFO] [stdout] = note: this warning originates in the attribute macro `views` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_ratio` is never used [INFO] [stdout] --> tests/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn validate_ratio(ratio: &f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Search` is never constructed [INFO] [stdout] --> tests/mod.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Search<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `opt_mut`, `mut_opt_ref`, `mut_opt_mut`, and `ref_opt_mut` are never read [INFO] [stdout] --> tests/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct OptionTest<'a> { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 86 | opt_mut: Option<&'a mut String>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | mut_opt_ref: &'a mut Option<&'a String>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | mut_opt_mut: &'a mut Option<&'a mut String>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 91 | ref_opt_ref: &'a Option<&'a String>, [INFO] [stdout] 92 | ref_opt_mut: &'a Option<&'a mut String>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ref_opt_ref` is never read [INFO] [stdout] --> tests/mod.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 60 | pub view Two<'a> { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 91 | ref_opt_ref: &'a Option<&'a String>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ref_opt_ref` is never read [INFO] [stdout] --> tests/mod.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub view Three<'a> { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 91 | ref_opt_ref: &'a Option<&'a String>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Branch2` is never constructed [INFO] [stdout] --> tests/mod.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 142 | enum CannotInferType { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 143 | Branch1(String), [INFO] [stdout] 144 | Branch2(usize), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CannotInferType` 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 `field_never_used` is never read [INFO] [stdout] --> tests/mod.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 196 | pub struct Search<'a> [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 207 | field_never_used: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Search` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cannot_infer_type`, `result1`, `result2`, `vector`, `mut_number`, and `semantic_only_ref` are never read [INFO] [stdout] --> tests/mod.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 173 | pub view SemanticSearch<'a> where 'a: 'a { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 204 | vector: Option<&'a Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 205 | ratio: Option, [INFO] [stdout] 206 | mut_number: &'a mut usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 207 | field_never_used: bool, [INFO] [stdout] 208 | semantic_only_ref: &'a usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 209 | cannot_infer_type: CannotInferType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 210 | result1: Result, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 211 | result2: Result, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cannot_infer_type`, `result1`, `result2`, `vector`, and `semantic_only_ref` are never read [INFO] [stdout] --> tests/mod.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 173 | pub view SemanticSearch<'a> where 'a: 'a { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 204 | vector: Option<&'a Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | semantic_only_ref: &'a usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 209 | cannot_infer_type: CannotInferType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 210 | result1: Result, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 211 | result2: Result, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cannot_infer_type`, `result1`, and `result2` are never read [INFO] [stdout] --> tests/mod.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 185 | pub view HybridSearch<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 209 | cannot_infer_type: CannotInferType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 210 | result1: Result, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 211 | result2: Result, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HybridSearchRef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cannot_infer_type`, `result1`, and `result2` are never read [INFO] [stdout] --> tests/mod.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 185 | pub view HybridSearch<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 209 | cannot_infer_type: CannotInferType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 210 | result1: Result, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 211 | result2: Result, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HybridSearchMut` 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 `field_never_used` is never read [INFO] [stdout] --> tests/mod.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 323 | pub struct Search<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 332 | field_never_used: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Search` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.45s [INFO] running `Command { std: "docker" "inspect" "04ae19b5bed2aa754ab0d57a9bc6b4d2fd053ff3275d17ed99aab62693185c24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04ae19b5bed2aa754ab0d57a9bc6b4d2fd053ff3275d17ed99aab62693185c24", kill_on_drop: false }` [INFO] [stdout] 04ae19b5bed2aa754ab0d57a9bc6b4d2fd053ff3275d17ed99aab62693185c24