[INFO] cloning repository https://github.com/tony612/rust-by-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tony612/rust-by-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftony612%2Frust-by-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftony612%2Frust-by-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 12770c03945679fc114a5ef5accc51c6ecc0e8f9 [INFO] checking tony612/rust-by-example against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftony612%2Frust-by-example" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tony612/rust-by-example 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/tony612/rust-by-example [INFO] finished tweaking git repo https://github.com/tony612/rust-by-example [INFO] tweaked toml for git repo https://github.com/tony612/rust-by-example written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tony612/rust-by-example 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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ae2f1d9ae0bb1d76b153b98aa661c35906d0ff5df43f121bad71f56e61c736f [INFO] running `Command { std: "docker" "start" "-a" "1ae2f1d9ae0bb1d76b153b98aa661c35906d0ff5df43f121bad71f56e61c736f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ae2f1d9ae0bb1d76b153b98aa661c35906d0ff5df43f121bad71f56e61c736f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ae2f1d9ae0bb1d76b153b98aa661c35906d0ff5df43f121bad71f56e61c736f", kill_on_drop: false }` [INFO] [stdout] 1ae2f1d9ae0bb1d76b153b98aa661c35906d0ff5df43f121bad71f56e61c736f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a6c3c367f154ffc5b4172291a6a6c1caad88274862e3a93d65a78a8f32ca590 [INFO] running `Command { std: "docker" "start" "-a" "7a6c3c367f154ffc5b4172291a6a6c1caad88274862e3a93d65a78a8f32ca590", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Checking rust-by-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/lifetime/function.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(s1: &'a String, s2: &'a String) -> &'a String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pick_first` is never used [INFO] [stdout] --> src/lifetime/function.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn pick_first<'a>(s1: &'a String, _s2: &String) -> &'a String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyStruct` is never constructed [INFO] [stdout] --> src/lifetime/method.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MyStruct {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `empty` and `msg` are never used [INFO] [stdout] --> src/lifetime/method.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | impl MyStruct { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 4 | fn empty(&self, _msg: &str) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | fn msg<'a>(&self, msg: &'a str) -> &'a str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyStruct` is never constructed [INFO] [stdout] --> src/lifetime/struct.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MyStruct<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `empty` and `msg` are never used [INFO] [stdout] --> src/lifetime/struct.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl<'a> MyStruct<'a> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 6 | fn empty(&self, _msg: &str) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | fn msg<'b>(&self, msg: &'b str) -> &'b str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hygiene` is never used [INFO] [stdout] --> src/macro/hygiene.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn hygiene() -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `across_scope` is never used [INFO] [stdout] --> src/macro/hygiene.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn across_scope() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ref_mut` is never used [INFO] [stdout] --> src/pattern_match/ref.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn ref_mut(mut s: Option<&str>) -> Option<&str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ref_mut2` is never used [INFO] [stdout] --> src/pattern_match/ref.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn ref_mut2(mut s: Option<&str>) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ref_mut3` is never used [INFO] [stdout] --> src/pattern_match/ref.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn ref_mut3(s: Option<&str>) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> src/pattern_match/ref.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `and_mut` is never used [INFO] [stdout] --> src/pattern_match/ref.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn and_mut(input: Option<&mut Foo>) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cell` is never constructed [INFO] [stdout] --> src/pointer/cell.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cell { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` 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 items `new`, `set`, and `get` are never used [INFO] [stdout] --> src/pointer/cell.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Cell { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(value: T) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn set(&self, val: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get(&self) -> T [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RcInner` is never constructed [INFO] [stdout] --> src/pointer/rc.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct RcInner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rc` is never constructed [INFO] [stdout] --> src/pointer/rc.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Rc { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pointer/rc.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Rc { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 17 | fn new(value: T) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_ref_copy` is never used [INFO] [stdout] --> src/pointer/rc.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn print_ref_copy(copied_ref: &RcInner) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RefState` is never used [INFO] [stdout] --> src/pointer/refcell.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum RefState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefCell` is never constructed [INFO] [stdout] --> src/pointer/refcell.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct RefCell { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `borrow`, and `borrow_mut` are never used [INFO] [stdout] --> src/pointer/refcell.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl RefCell { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 21 | fn new(value: T) -> RefCell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn borrow(&self) -> Option> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn borrow_mut(&self) -> Option> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ref` is never constructed [INFO] [stdout] --> src/pointer/refcell.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct Ref<'refcell, T> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefMut` is never constructed [INFO] [stdout] --> src/pointer/refcell.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct RefMut<'refcell, T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/sync/mpsc.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl Sender { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 30 | fn send(&self, v: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Receiver` is never constructed [INFO] [stdout] --> src/sync/mpsc.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct Receiver { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `recv` is never used [INFO] [stdout] --> src/sync/mpsc.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 71 | impl Receiver { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 72 | fn recv(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `queue` is never read [INFO] [stdout] --> src/sync/mpsc.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 95 | struct Inner { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 96 | queue: VecDeque, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel` is never used [INFO] [stdout] --> src/sync/mpsc.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn channel() -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Actor` is never used [INFO] [stdout] --> src/tokio/actor.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Actor { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActorMessage` is never constructed [INFO] [stdout] --> src/tokio/actor.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ActorMessage { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn` is never used [INFO] [stdout] --> src/tokio/actor.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn spawn(mut actor: A, mailbox: usize) -> Pid [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pid` is never constructed [INFO] [stdout] --> src/tokio/actor.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Pid { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pid` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/tokio/actor.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 40 | impl Pid { [INFO] [stdout] | ---------------------------------------- method in this implementation [INFO] [stdout] 41 | pub async fn send(&self, data: Request) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `watch` is never used [INFO] [stdout] --> src/tokio/watch.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | async fn watch() -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/pointer/rc.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | drop(inner); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&RcInner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 66 - drop(inner); [INFO] [stdout] 66 + let _ = inner; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/pointer/rc.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { Box::from_raw(self.inner.as_ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { let _ = Box::from_raw(self.inner.as_ptr()); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/pointer/rc.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | drop(inner); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&RcInner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 66 - drop(inner); [INFO] [stdout] 66 + let _ = inner; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/pointer/rc.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { Box::from_raw(self.inner.as_ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { let _ = Box::from_raw(self.inner.as_ptr()); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.48s [INFO] running `Command { std: "docker" "inspect" "7a6c3c367f154ffc5b4172291a6a6c1caad88274862e3a93d65a78a8f32ca590", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a6c3c367f154ffc5b4172291a6a6c1caad88274862e3a93d65a78a8f32ca590", kill_on_drop: false }` [INFO] [stdout] 7a6c3c367f154ffc5b4172291a6a6c1caad88274862e3a93d65a78a8f32ca590 [INFO] checking tony612/rust-by-example 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%2Ftony612%2Frust-by-example" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tony612/rust-by-example 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/tony612/rust-by-example [INFO] finished tweaking git repo https://github.com/tony612/rust-by-example [INFO] tweaked toml for git repo https://github.com/tony612/rust-by-example written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tony612/rust-by-example 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 4a5b34688fce408217e29fbd9ea533ef5898e10d426f5f657aca887fd4cfb80a [INFO] running `Command { std: "docker" "start" "-a" "4a5b34688fce408217e29fbd9ea533ef5898e10d426f5f657aca887fd4cfb80a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a5b34688fce408217e29fbd9ea533ef5898e10d426f5f657aca887fd4cfb80a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a5b34688fce408217e29fbd9ea533ef5898e10d426f5f657aca887fd4cfb80a", kill_on_drop: false }` [INFO] [stdout] 4a5b34688fce408217e29fbd9ea533ef5898e10d426f5f657aca887fd4cfb80a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] fc628a5985569f98aafd3c6f8edefc700c4b05de51eb709ba10506d1cbd9b726 [INFO] running `Command { std: "docker" "start" "-a" "fc628a5985569f98aafd3c6f8edefc700c4b05de51eb709ba10506d1cbd9b726", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Checking rust-by-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/lifetime/function.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(s1: &'a String, s2: &'a String) -> &'a String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pick_first` is never used [INFO] [stdout] --> src/lifetime/function.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn pick_first<'a>(s1: &'a String, _s2: &String) -> &'a String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyStruct` is never constructed [INFO] [stdout] --> src/lifetime/method.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MyStruct {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `empty` and `msg` are never used [INFO] [stdout] --> src/lifetime/method.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | impl MyStruct { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 4 | fn empty(&self, _msg: &str) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 8 | fn msg<'a>(&self, msg: &'a str) -> &'a str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyStruct` is never constructed [INFO] [stdout] --> src/lifetime/struct.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MyStruct<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `empty` and `msg` are never used [INFO] [stdout] --> src/lifetime/struct.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl<'a> MyStruct<'a> { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 6 | fn empty(&self, _msg: &str) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | fn msg<'b>(&self, msg: &'b str) -> &'b str { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hygiene` is never used [INFO] [stdout] --> src/macro/hygiene.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn hygiene() -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `across_scope` is never used [INFO] [stdout] --> src/macro/hygiene.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn across_scope() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ref_mut` is never used [INFO] [stdout] --> src/pattern_match/ref.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn ref_mut(mut s: Option<&str>) -> Option<&str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ref_mut2` is never used [INFO] [stdout] --> src/pattern_match/ref.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn ref_mut2(mut s: Option<&str>) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ref_mut3` is never used [INFO] [stdout] --> src/pattern_match/ref.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn ref_mut3(s: Option<&str>) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> src/pattern_match/ref.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `and_mut` is never used [INFO] [stdout] --> src/pattern_match/ref.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn and_mut(input: Option<&mut Foo>) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cell` is never constructed [INFO] [stdout] --> src/pointer/cell.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Cell { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Cell` 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 items `new`, `set`, and `get` are never used [INFO] [stdout] --> src/pointer/cell.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Cell { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(value: T) -> Cell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn set(&self, val: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get(&self) -> T [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RcInner` is never constructed [INFO] [stdout] --> src/pointer/rc.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct RcInner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rc` is never constructed [INFO] [stdout] --> src/pointer/rc.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Rc { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pointer/rc.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Rc { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 17 | fn new(value: T) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_ref_copy` is never used [INFO] [stdout] --> src/pointer/rc.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn print_ref_copy(copied_ref: &RcInner) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RefState` is never used [INFO] [stdout] --> src/pointer/refcell.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum RefState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefCell` is never constructed [INFO] [stdout] --> src/pointer/refcell.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct RefCell { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `borrow`, and `borrow_mut` are never used [INFO] [stdout] --> src/pointer/refcell.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl RefCell { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 21 | fn new(value: T) -> RefCell { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn borrow(&self) -> Option> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn borrow_mut(&self) -> Option> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ref` is never constructed [INFO] [stdout] --> src/pointer/refcell.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct Ref<'refcell, T> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefMut` is never constructed [INFO] [stdout] --> src/pointer/refcell.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | struct RefMut<'refcell, T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/sync/mpsc.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 29 | impl Sender { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 30 | fn send(&self, v: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Receiver` is never constructed [INFO] [stdout] --> src/sync/mpsc.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct Receiver { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `recv` is never used [INFO] [stdout] --> src/sync/mpsc.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 71 | impl Receiver { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 72 | fn recv(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `queue` is never read [INFO] [stdout] --> src/sync/mpsc.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 95 | struct Inner { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 96 | queue: VecDeque, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `channel` is never used [INFO] [stdout] --> src/sync/mpsc.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn channel() -> (Sender, Receiver) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Actor` is never used [INFO] [stdout] --> src/tokio/actor.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Actor { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ActorMessage` is never constructed [INFO] [stdout] --> src/tokio/actor.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ActorMessage { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn` is never used [INFO] [stdout] --> src/tokio/actor.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn spawn(mut actor: A, mailbox: usize) -> Pid [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pid` is never constructed [INFO] [stdout] --> src/tokio/actor.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Pid { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pid` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send` is never used [INFO] [stdout] --> src/tokio/actor.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 40 | impl Pid { [INFO] [stdout] | ---------------------------------------- method in this implementation [INFO] [stdout] 41 | pub async fn send(&self, data: Request) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `watch` is never used [INFO] [stdout] --> src/tokio/watch.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | async fn watch() -> Result<()> { [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/pointer/cell.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(value: T) -> Cell { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | Cell { [INFO] [stdout] 14 | value: UnsafeCell::new(value), [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: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/pointer/rc.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | drop(inner); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&RcInner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 66 - drop(inner); [INFO] [stdout] 66 + let _ = inner; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/pointer/rc.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { Box::from_raw(self.inner.as_ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { let _ = Box::from_raw(self.inner.as_ptr()); }; [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/pointer/refcell.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 21 | fn new(value: T) -> RefCell { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | RefCell { [INFO] [stdout] 23 | value: UnsafeCell::new(value), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/sync/mpsc.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 44 | let mut inner = self.shared.inner.lock().unwrap(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | shared: self.shared.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/sync/mpsc.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 106 | let inner = Inner { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 110 | let shared = Shared { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 114 | let shared = Arc::new(shared); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 115 | ( [INFO] [stdout] 116 | / Sender { [INFO] [stdout] 117 | | shared: shared.clone(), [INFO] [stdout] 118 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/sync/mpsc.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 106 | let inner = Inner { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 110 | let shared = Shared { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 114 | let shared = Arc::new(shared); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 119 | / Receiver { [INFO] [stdout] 120 | | shared: shared.clone(), [INFO] [stdout] 121 | | buffer: VecDeque::new(), [INFO] [stdout] 122 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-by-example` (bin "rust-by-example") due to 6 previous errors; 37 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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/pointer/cell.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(value: T) -> Cell { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | Cell { [INFO] [stdout] 14 | value: UnsafeCell::new(value), [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: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/pointer/rc.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | drop(inner); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&RcInner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 66 - drop(inner); [INFO] [stdout] 66 + let _ = inner; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/pointer/rc.rs:76:26 [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { Box::from_raw(self.inner.as_ptr()) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 76 | unsafe { let _ = Box::from_raw(self.inner.as_ptr()); }; [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/pointer/refcell.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 21 | fn new(value: T) -> RefCell { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | RefCell { [INFO] [stdout] 23 | value: UnsafeCell::new(value), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/sync/mpsc.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 44 | let mut inner = self.shared.inner.lock().unwrap(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 49 | shared: self.shared.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/sync/mpsc.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 106 | let inner = Inner { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 110 | let shared = Shared { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 114 | let shared = Arc::new(shared); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 115 | ( [INFO] [stdout] 116 | / Sender { [INFO] [stdout] 117 | | shared: shared.clone(), [INFO] [stdout] 118 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [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/sync/mpsc.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 106 | let inner = Inner { [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 110 | let shared = Shared { [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 114 | let shared = Arc::new(shared); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 119 | / Receiver { [INFO] [stdout] 120 | | shared: shared.clone(), [INFO] [stdout] 121 | | buffer: VecDeque::new(), [INFO] [stdout] 122 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-by-example` (bin "rust-by-example" test) due to 6 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fc628a5985569f98aafd3c6f8edefc700c4b05de51eb709ba10506d1cbd9b726", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc628a5985569f98aafd3c6f8edefc700c4b05de51eb709ba10506d1cbd9b726", kill_on_drop: false }` [INFO] [stdout] fc628a5985569f98aafd3c6f8edefc700c4b05de51eb709ba10506d1cbd9b726