[INFO] cloning repository https://github.com/peter-kehl/mockit-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/peter-kehl/mockit-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeter-kehl%2Fmockit-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeter-kehl%2Fmockit-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51095947c9f27cbfa479cbabc63f08c709c819d6 [INFO] building peter-kehl/mockit-rs against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeter-kehl%2Fmockit-rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/peter-kehl/mockit-rs on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/peter-kehl/mockit-rs [INFO] finished tweaking git repo https://github.com/peter-kehl/mockit-rs [INFO] tweaked toml for git repo https://github.com/peter-kehl/mockit-rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/peter-kehl/mockit-rs 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] Error response from daemon: mkdir /var/lib/docker/overlay2/57c7831b1f5595b3c9e9b03ac4b540940f1ce5c0eb833496770bbad06de240be-init: no space left on device [INFO] building peter-kehl/mockit-rs against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeter-kehl%2Fmockit-rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/peter-kehl/mockit-rs on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/peter-kehl/mockit-rs [INFO] finished tweaking git repo https://github.com/peter-kehl/mockit-rs [INFO] tweaked toml for git repo https://github.com/peter-kehl/mockit-rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/peter-kehl/mockit-rs 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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f46b23837b4090339cc615ccfebe3b5110f45561fdcefd9ef48bd531067d6923 [INFO] running `Command { std: "docker" "start" "-a" "f46b23837b4090339cc615ccfebe3b5110f45561fdcefd9ef48bd531067d6923", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f46b23837b4090339cc615ccfebe3b5110f45561fdcefd9ef48bd531067d6923", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f46b23837b4090339cc615ccfebe3b5110f45561fdcefd9ef48bd531067d6923", kill_on_drop: false }` [INFO] [stdout] f46b23837b4090339cc615ccfebe3b5110f45561fdcefd9ef48bd531067d6923 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ddb9e719b8ef2db8066624b12766b8e6bf143d93879530d17bb4d065fe16d37 [INFO] running `Command { std: "docker" "start" "-a" "9ddb9e719b8ef2db8066624b12766b8e6bf143d93879530d17bb4d065fe16d37", kill_on_drop: false }` [INFO] [stderr] Compiling mockit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `does_not_compile` [INFO] [stdout] --> src/read.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | #[cfg(feature="does_not_compile")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `mock` [INFO] [stdout] = help: consider adding `does_not_compile` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/read.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let f = || 1usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | fn from(value: Stru) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | fn from(value: Intermediary) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/read.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let s2: Stru<2> = inter.into(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | fn from(value: Stru) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/read.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn new_pass(r: R) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsupported_when_mocking` is never used [INFO] [stdout] --> src/read.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn unsupported_when_mocking() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadOwn` is never constructed [INFO] [stdout] --> src/read.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct ReadOwn<_R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadRef` is never constructed [INFO] [stdout] --> src/read.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct ReadRef<'r, R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReadRef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadMut` is never constructed [INFO] [stdout] --> src/read.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct ReadMut<'r, R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ReadDyn` is never used [INFO] [stdout] --> src/read.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub type ReadDyn<'a> = &'a dyn io::Read; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ReadMutDyn` is never used [INFO] [stdout] --> src/read.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | pub type ReadMutDyn<'a> = &'a mut dyn io::Read; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PassedReadBranch` is never used [INFO] [stdout] --> src/read.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | type PassedReadBranch = (!, PhantomData); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MockedReadBranch` is never used [INFO] [stdout] --> src/read.rs:137:6 [INFO] [stdout] | [INFO] [stdout] 137 | type MockedReadBranch = MoReadBox; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MoRead` is never used [INFO] [stdout] --> src/read.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum MoRead { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_pass`, `new_mock`, `new_mock_from`, `get`, `pass`, and `pass_out` are never used [INFO] [stdout] --> src/read.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl MoRead { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 145 | pub fn new_pass(r: R) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn new_mock() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn new_mock_from(_mocked_read_box: MoReadBox) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn get(&mut self) -> &mut Box { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn pass(&mut self) -> &mut R { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn pass_out(self) -> R { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `r` is never read [INFO] [stdout] --> src/read.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct MoReadBox { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 259 | // An Option, so that we can flexibly move it in & out, or initiate it later/lazily. [INFO] [stdout] 260 | r: Option>, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `MoReadBox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_from` is never used [INFO] [stdout] --> src/read.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 263 | impl MoReadBox { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 264 | pub fn new_from(box_read: Box) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `s` should have an upper case name [INFO] [stdout] --> src/read.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | struct Stru {} [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `S` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `f` should have an upper case name [INFO] [stdout] --> src/read.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | impl From> for Intermediary { [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `t` should have an upper case name [INFO] [stdout] --> src/read.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | impl From for Stru { [INFO] [stdout] | ^ help: convert the identifier to upper case: `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "9ddb9e719b8ef2db8066624b12766b8e6bf143d93879530d17bb4d065fe16d37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ddb9e719b8ef2db8066624b12766b8e6bf143d93879530d17bb4d065fe16d37", kill_on_drop: false }` [INFO] [stdout] 9ddb9e719b8ef2db8066624b12766b8e6bf143d93879530d17bb4d065fe16d37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39e80b1d62912cc0d7133957a12059dfbf3a2abb932acb8cfae538e112d538ec [INFO] running `Command { std: "docker" "start" "-a" "39e80b1d62912cc0d7133957a12059dfbf3a2abb932acb8cfae538e112d538ec", kill_on_drop: false }` [INFO] [stderr] Compiling mockit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `does_not_compile` [INFO] [stdout] --> src/read.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | #[cfg(feature="does_not_compile")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `mock` [INFO] [stdout] = help: consider adding `does_not_compile` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/read.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let f = || 1usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | fn from(value: Stru) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | fn from(value: Intermediary) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/read.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let s2: Stru<2> = inter.into(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | fn from(value: Stru) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/read.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn new_pass(r: R) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsupported_when_mocking` is never used [INFO] [stdout] --> src/read.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn unsupported_when_mocking() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadOwn` is never constructed [INFO] [stdout] --> src/read.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct ReadOwn<_R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadRef` is never constructed [INFO] [stdout] --> src/read.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct ReadRef<'r, R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReadRef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadMut` is never constructed [INFO] [stdout] --> src/read.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct ReadMut<'r, R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ReadDyn` is never used [INFO] [stdout] --> src/read.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub type ReadDyn<'a> = &'a dyn io::Read; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ReadMutDyn` is never used [INFO] [stdout] --> src/read.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | pub type ReadMutDyn<'a> = &'a mut dyn io::Read; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PassedReadBranch` is never used [INFO] [stdout] --> src/read.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | type PassedReadBranch = (!, PhantomData); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MockedReadBranch` is never used [INFO] [stdout] --> src/read.rs:137:6 [INFO] [stdout] | [INFO] [stdout] 137 | type MockedReadBranch = MoReadBox; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MoRead` is never used [INFO] [stdout] --> src/read.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum MoRead { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_pass`, `new_mock`, `new_mock_from`, `get`, `pass`, and `pass_out` are never used [INFO] [stdout] --> src/read.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl MoRead { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 145 | pub fn new_pass(r: R) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn new_mock() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn new_mock_from(_mocked_read_box: MoReadBox) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn get(&mut self) -> &mut Box { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn pass(&mut self) -> &mut R { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn pass_out(self) -> R { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `r` is never read [INFO] [stdout] --> src/read.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct MoReadBox { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 259 | // An Option, so that we can flexibly move it in & out, or initiate it later/lazily. [INFO] [stdout] 260 | r: Option>, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `MoReadBox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_from` is never used [INFO] [stdout] --> src/read.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 263 | impl MoReadBox { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 264 | pub fn new_from(box_read: Box) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `s` should have an upper case name [INFO] [stdout] --> src/read.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | struct Stru {} [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `S` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `f` should have an upper case name [INFO] [stdout] --> src/read.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | impl From> for Intermediary { [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `t` should have an upper case name [INFO] [stdout] --> src/read.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | impl From for Stru { [INFO] [stdout] | ^ help: convert the identifier to upper case: `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `does_not_compile` [INFO] [stdout] --> src/read.rs:108:7 [INFO] [stdout] | [INFO] [stdout] 108 | #[cfg(feature="does_not_compile")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default` and `mock` [INFO] [stdout] = help: consider adding `does_not_compile` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/read.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/read.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let f = || 1usize; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | fn from(value: Stru) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | fn from(value: Intermediary) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/read.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let s2: Stru<2> = inter.into(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/read.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | fn from(value: Stru) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/read.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn new_pass(r: R) -> Self { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsupported_when_mocking` is never used [INFO] [stdout] --> src/read.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn unsupported_when_mocking() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadOwn` is never constructed [INFO] [stdout] --> src/read.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct ReadOwn<_R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadRef` is never constructed [INFO] [stdout] --> src/read.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct ReadRef<'r, R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReadRef` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReadMut` is never constructed [INFO] [stdout] --> src/read.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct ReadMut<'r, R: io::Read> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ReadDyn` is never used [INFO] [stdout] --> src/read.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub type ReadDyn<'a> = &'a dyn io::Read; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ReadMutDyn` is never used [INFO] [stdout] --> src/read.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | pub type ReadMutDyn<'a> = &'a mut dyn io::Read; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PassedReadBranch` is never used [INFO] [stdout] --> src/read.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | type PassedReadBranch = (!, PhantomData); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MockedReadBranch` is never used [INFO] [stdout] --> src/read.rs:137:6 [INFO] [stdout] | [INFO] [stdout] 137 | type MockedReadBranch = MoReadBox; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MoRead` is never used [INFO] [stdout] --> src/read.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum MoRead { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_pass`, `new_mock`, `new_mock_from`, `get`, `pass`, and `pass_out` are never used [INFO] [stdout] --> src/read.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl MoRead { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 145 | pub fn new_pass(r: R) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn new_mock() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn new_mock_from(_mocked_read_box: MoReadBox) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn get(&mut self) -> &mut Box { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn pass(&mut self) -> &mut R { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub fn pass_out(self) -> R { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `r` is never read [INFO] [stdout] --> src/read.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct MoReadBox { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 259 | // An Option, so that we can flexibly move it in & out, or initiate it later/lazily. [INFO] [stdout] 260 | r: Option>, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `MoReadBox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_from` is never used [INFO] [stdout] --> src/read.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 263 | impl MoReadBox { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 264 | pub fn new_from(box_read: Box) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `s` should have an upper case name [INFO] [stdout] --> src/read.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | struct Stru {} [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `S` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `f` should have an upper case name [INFO] [stdout] --> src/read.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | impl From> for Intermediary { [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `F` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: const parameter `t` should have an upper case name [INFO] [stdout] --> src/read.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | impl From for Stru { [INFO] [stdout] | ^ help: convert the identifier to upper case: `T` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "39e80b1d62912cc0d7133957a12059dfbf3a2abb932acb8cfae538e112d538ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39e80b1d62912cc0d7133957a12059dfbf3a2abb932acb8cfae538e112d538ec", kill_on_drop: false }` [INFO] [stdout] 39e80b1d62912cc0d7133957a12059dfbf3a2abb932acb8cfae538e112d538ec