[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#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchinaxxren%2Frust-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-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-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/chinaxxren/rust-rs on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 114ebd601cb6304231a705c2327823ac828904827841dfb3061fc15c0540049a
[INFO] running `Command { std: "docker" "start" "-a" "114ebd601cb6304231a705c2327823ac828904827841dfb3061fc15c0540049a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "114ebd601cb6304231a705c2327823ac828904827841dfb3061fc15c0540049a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "114ebd601cb6304231a705c2327823ac828904827841dfb3061fc15c0540049a", kill_on_drop: false }`
[INFO] [stdout] 114ebd601cb6304231a705c2327823ac828904827841dfb3061fc15c0540049a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fbb4c61c14448f6d7f0eb08f5ea7f103b85d0bf36631bd2e72fb98ebf856a983
[INFO] running `Command { std: "docker" "start" "-a" "fbb4c61c14448f6d7f0eb08f5ea7f103b85d0bf36631bd2e72fb98ebf856a983", 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)]` (part of `#[warn(unused)]`) 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<T> {
[INFO] [stdout]   |        ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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<T> {
[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<T> {
[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<T> Rc<T> {
[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<T> {
[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<T> {
[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<T> Weak<T> {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout]  86 |     fn upgrade(&self) -> Option<Rc<T>> {
[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<T> {
[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<T> {
[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<T> {
[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<T> {
[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<T> Arc<T> {
[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<T> {
[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<T> {
[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<T> Weak<T> {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] 81 |     fn upgrade(&self) -> Option<Arc<T>> {
[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<T> {
[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<Box<Self>> {
[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::<T>::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)]` (part of `#[warn(unused)]`) 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::<T>::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::<T>::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::<T>::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: 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)]` (part of `#[warn(unused)]`) 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<T> {
[INFO] [stdout]   |        ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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<T> {
[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<T> {
[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<T> Rc<T> {
[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<T> {
[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<T> {
[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<T> Weak<T> {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout]  86 |     fn upgrade(&self) -> Option<Rc<T>> {
[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<T> {
[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<T> {
[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<T> {
[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<T> {
[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<T> Arc<T> {
[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<T> {
[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<T> {
[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<T> Weak<T> {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] 81 |     fn upgrade(&self) -> Option<Arc<T>> {
[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<T> {
[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<Box<Self>> {
[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::<T>::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)]` (part of `#[warn(unused)]`) 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::<T>::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::<T>::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::<T>::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.25s
[INFO] running `Command { std: "docker" "inspect" "fbb4c61c14448f6d7f0eb08f5ea7f103b85d0bf36631bd2e72fb98ebf856a983", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fbb4c61c14448f6d7f0eb08f5ea7f103b85d0bf36631bd2e72fb98ebf856a983", kill_on_drop: false }`
[INFO] [stdout] fbb4c61c14448f6d7f0eb08f5ea7f103b85d0bf36631bd2e72fb98ebf856a983
