[INFO] cloning repository https://github.com/chinaxxren/rust-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chinaxxren/rust-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinaxxren%2Frust-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinaxxren%2Frust-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3558a785504aea03bba96b10ba2de371c25f3651 [INFO] checking chinaxxren/rust-rs against try#1383df06117fd218068d1f39fd5326256dd4a348 for pr-145181 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinaxxren%2Frust-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chinaxxren/rust-rs [INFO] finished tweaking git repo https://github.com/chinaxxren/rust-rs [INFO] tweaked toml for git repo https://github.com/chinaxxren/rust-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chinaxxren/rust-rs on toolchain 1383df06117fd218068d1f39fd5326256dd4a348 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chinaxxren/rust-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" "+1383df06117fd218068d1f39fd5326256dd4a348" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5bbb78d1527dc23c22b7e0fbee87ed74b85c859b38fcdfba9577537a226ab221 [INFO] running `Command { std: "docker" "start" "-a" "5bbb78d1527dc23c22b7e0fbee87ed74b85c859b38fcdfba9577537a226ab221", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5bbb78d1527dc23c22b7e0fbee87ed74b85c859b38fcdfba9577537a226ab221", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bbb78d1527dc23c22b7e0fbee87ed74b85c859b38fcdfba9577537a226ab221", kill_on_drop: false }` [INFO] [stdout] 5bbb78d1527dc23c22b7e0fbee87ed74b85c859b38fcdfba9577537a226ab221 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c7d4139bf332b8b31b5a982c04fefd807a7010bda0602998d82b4db5eb64ba2 [INFO] running `Command { std: "docker" "start" "-a" "2c7d4139bf332b8b31b5a982c04fefd807a7010bda0602998d82b4db5eb64ba2", kill_on_drop: false }` [INFO] [stderr] Checking rust-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/demo/un_movable.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut still_unmoved = unmoved; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/demo/un_movable.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut still_unmoved = unmoved; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rc` is never constructed [INFO] [stdout] --> src/demo/my_weak.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Rc { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Weak` is never constructed [INFO] [stdout] --> src/demo/my_weak.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Weak { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inner` is never constructed [INFO] [stdout] --> src/demo/my_weak.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `downgrade`, `strong_count`, `weak_count`, and `inner` are never used [INFO] [stdout] --> src/demo/my_weak.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Rc { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 23 | fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn downgrade(&self) -> Weak { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn inner(&self) -> &Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `upgrade`, `strong_count`, `weak_count`, and `inner` are never used [INFO] [stdout] --> src/demo/my_weak.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl Weak { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 86 | fn upgrade(&self) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn inner(&self) -> &Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/demo/my_weak.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Arc` is never constructed [INFO] [stdout] --> src/demo/my_arc.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Weak` is never constructed [INFO] [stdout] --> src/demo/my_arc.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Weak { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inner` is never constructed [INFO] [stdout] --> src/demo/my_arc.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `downgrade`, `strong_count`, `weak_count`, and `inner` are never used [INFO] [stdout] --> src/demo/my_arc.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Arc { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 21 | fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn downgrade(&self) -> Weak { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn inner(&self) -> &Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rc` is never constructed [INFO] [stdout] --> src/demo/my_weak.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Rc { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `upgrade`, `strong_count`, `weak_count`, and `inner` are never used [INFO] [stdout] --> src/demo/my_arc.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl Weak { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 81 | fn upgrade(&self) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn inner(&self) -> &Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/demo/my_arc.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Weak` is never constructed [INFO] [stdout] --> src/demo/my_weak.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Weak { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SelfRef` is never constructed [INFO] [stdout] --> src/demo/self_ref.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct SelfRef { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inner` is never constructed [INFO] [stdout] --> src/demo/my_weak.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `value`, and `pointer_to_value` are never used [INFO] [stdout] --> src/demo/self_ref.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl SelfRef { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 8 | fn new(txt: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn value(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn pointer_to_value(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/demo/self_ref.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `downgrade`, `strong_count`, `weak_count`, and `inner` are never used [INFO] [stdout] --> src/demo/my_weak.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Rc { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 23 | fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn downgrade(&self) -> Weak { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn inner(&self) -> &Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unmovable` is never constructed [INFO] [stdout] --> src/demo/un_movable.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Unmovable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/demo/un_movable.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Unmovable { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 15 | // 为了确保函数返回时数据的所有权不会被转移,我们将它放在堆上,唯一的访问方式就是通过指针 [INFO] [stdout] 16 | fn new(data: String) -> Pin> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `upgrade`, `strong_count`, `weak_count`, and `inner` are never used [INFO] [stdout] --> src/demo/my_weak.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl Weak { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 86 | fn upgrade(&self) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn inner(&self) -> &Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/demo/un_movable.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/demo/my_weak.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Arc` is never constructed [INFO] [stdout] --> src/demo/my_arc.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Weak` is never constructed [INFO] [stdout] --> src/demo/my_arc.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Weak { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inner` is never constructed [INFO] [stdout] --> src/demo/my_arc.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `downgrade`, `strong_count`, `weak_count`, and `inner` are never used [INFO] [stdout] --> src/demo/my_arc.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Arc { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 21 | fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn downgrade(&self) -> Weak { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn inner(&self) -> &Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `upgrade`, `strong_count`, `weak_count`, and `inner` are never used [INFO] [stdout] --> src/demo/my_arc.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl Weak { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 81 | fn upgrade(&self) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn strong_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn weak_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn inner(&self) -> &Inner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/demo/my_arc.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SelfRef` is never constructed [INFO] [stdout] --> src/demo/self_ref.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct SelfRef { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `init`, `value`, and `pointer_to_value` are never used [INFO] [stdout] --> src/demo/self_ref.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl SelfRef { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 8 | fn new(txt: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn init(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn value(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn pointer_to_value(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/demo/self_ref.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Unmovable` is never constructed [INFO] [stdout] --> src/demo/un_movable.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Unmovable { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/demo/un_movable.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Unmovable { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 15 | // 为了确保函数返回时数据的所有权不会被转移,我们将它放在堆上,唯一的访问方式就是通过指针 [INFO] [stdout] 16 | fn new(data: String) -> Pin> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/demo/un_movable.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/demo/my_weak.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 76 | Box::from_raw(self.ptr.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 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/demo/my_weak.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/demo/my_arc.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/demo/my_arc.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 117 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/demo/my_weak.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 76 | Box::from_raw(self.ptr.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 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/demo/my_weak.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 125 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/demo/my_arc.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/demo/my_arc.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 117 | let _ = Box::from_raw(self.ptr.as_ptr()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] running `Command { std: "docker" "inspect" "2c7d4139bf332b8b31b5a982c04fefd807a7010bda0602998d82b4db5eb64ba2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c7d4139bf332b8b31b5a982c04fefd807a7010bda0602998d82b4db5eb64ba2", kill_on_drop: false }` [INFO] [stdout] 2c7d4139bf332b8b31b5a982c04fefd807a7010bda0602998d82b4db5eb64ba2