[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] checking peter-kehl/mockit-rs against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeter-kehl%2Fmockit-rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/peter-kehl/mockit-rs on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "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-0-tc1/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c64f01fb9db89dba4c6503849efe2ff0ce10595e24b2258be283beb0ec21f4b [INFO] running `Command { std: "docker" "start" "-a" "6c64f01fb9db89dba4c6503849efe2ff0ce10595e24b2258be283beb0ec21f4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c64f01fb9db89dba4c6503849efe2ff0ce10595e24b2258be283beb0ec21f4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c64f01fb9db89dba4c6503849efe2ff0ce10595e24b2258be283beb0ec21f4b", kill_on_drop: false }` [INFO] [stdout] 6c64f01fb9db89dba4c6503849efe2ff0ce10595e24b2258be283beb0ec21f4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e22fa7b0215407577d07e722a44d21020512a26cfef6875d4e869bd12ef147bf [INFO] running `Command { std: "docker" "start" "-a" "e22fa7b0215407577d07e722a44d21020512a26cfef6875d4e869bd12ef147bf", kill_on_drop: false }` [INFO] [stderr] Checking 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: 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: `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: 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: unreachable pattern [INFO] [stdout] --> src/read.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | Self::Pass(_passed) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ matches no values because `(!, PhantomData)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [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: unreachable pattern [INFO] [stdout] --> src/read.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | Self::Pass(_passed) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ matches no values because `(!, PhantomData)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [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: variants `Pass` and `Mock` are never constructed [INFO] [stdout] --> src/read.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum MoRead { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 140 | Pass(PassedReadBranch), [INFO] [stdout] | ^^^^ [INFO] [stdout] 141 | Mock(MockedReadBranch), [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: 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: variants `Pass` and `Mock` are never constructed [INFO] [stdout] --> src/read.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum MoRead { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 140 | Pass(PassedReadBranch), [INFO] [stdout] | ^^^^ [INFO] [stdout] 141 | Mock(MockedReadBranch), [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: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] running `Command { std: "docker" "inspect" "e22fa7b0215407577d07e722a44d21020512a26cfef6875d4e869bd12ef147bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e22fa7b0215407577d07e722a44d21020512a26cfef6875d4e869bd12ef147bf", kill_on_drop: false }` [INFO] [stdout] e22fa7b0215407577d07e722a44d21020512a26cfef6875d4e869bd12ef147bf [INFO] checking peter-kehl/mockit-rs against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeter-kehl%2Fmockit-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/peter-kehl/mockit-rs on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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-0-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d691b0841f99ecdcc4b573e0cc623c9de163e27f2db8d2b02756edc82630ce7c [INFO] running `Command { std: "docker" "start" "-a" "d691b0841f99ecdcc4b573e0cc623c9de163e27f2db8d2b02756edc82630ce7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d691b0841f99ecdcc4b573e0cc623c9de163e27f2db8d2b02756edc82630ce7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d691b0841f99ecdcc4b573e0cc623c9de163e27f2db8d2b02756edc82630ce7c", kill_on_drop: false }` [INFO] [stdout] d691b0841f99ecdcc4b573e0cc623c9de163e27f2db8d2b02756edc82630ce7c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66444ccab501f8619a8c66167ee102da25fbb8b9b545eb90f417f257b2ebb068 [INFO] running `Command { std: "docker" "start" "-a" "66444ccab501f8619a8c66167ee102da25fbb8b9b545eb90f417f257b2ebb068", kill_on_drop: false }` [INFO] [stderr] Checking 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: 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: `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: 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: unreachable pattern [INFO] [stdout] --> src/read.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | Self::Pass(_passed) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ matches no values because `(!, PhantomData)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/read.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | Self::Pass(_passed) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ matches no values because `(!, PhantomData)` is uninhabited [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [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: variants `Pass` and `Mock` are never constructed [INFO] [stdout] --> src/read.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum MoRead { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 140 | Pass(PassedReadBranch), [INFO] [stdout] | ^^^^ [INFO] [stdout] 141 | Mock(MockedReadBranch), [INFO] [stdout] | ^^^^ [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: 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: 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: 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: 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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/read.rs:265:19 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn new_from(box_read: Box) -> Self { [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 265 | Self { r: Some(box_read) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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: 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: variants `Pass` and `Mock` are never constructed [INFO] [stdout] --> src/read.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 139 | pub enum MoRead { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 140 | Pass(PassedReadBranch), [INFO] [stdout] | ^^^^ [INFO] [stdout] 141 | Mock(MockedReadBranch), [INFO] [stdout] | ^^^^ [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: 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: 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: 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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/read.rs:265:19 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn new_from(box_read: Box) -> Self { [INFO] [stdout] | --------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 265 | Self { r: Some(box_read) } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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] error: aborting due to 1 previous error; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mockit` (lib test) due to 2 previous errors; 22 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `mockit` (lib) due to 2 previous errors; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "66444ccab501f8619a8c66167ee102da25fbb8b9b545eb90f417f257b2ebb068", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66444ccab501f8619a8c66167ee102da25fbb8b9b545eb90f417f257b2ebb068", kill_on_drop: false }` [INFO] [stdout] 66444ccab501f8619a8c66167ee102da25fbb8b9b545eb90f417f257b2ebb068