[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#e29821ff85a2a3000d226f99f62f89464028d5d6 for pr-111505 [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 e29821ff85a2a3000d226f99f62f89464028d5d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e29821ff85a2a3000d226f99f62f89464028d5d6" "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" "+e29821ff85a2a3000d226f99f62f89464028d5d6" "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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e29821ff85a2a3000d226f99f62f89464028d5d6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4639ee11da6cc21c1d3ddbf45cc67be12a63630ed45b618ccbb8ecec802eea4c [INFO] running `Command { std: "docker" "start" "-a" "4639ee11da6cc21c1d3ddbf45cc67be12a63630ed45b618ccbb8ecec802eea4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4639ee11da6cc21c1d3ddbf45cc67be12a63630ed45b618ccbb8ecec802eea4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4639ee11da6cc21c1d3ddbf45cc67be12a63630ed45b618ccbb8ecec802eea4c", kill_on_drop: false }` [INFO] [stdout] 4639ee11da6cc21c1d3ddbf45cc67be12a63630ed45b618ccbb8ecec802eea4c [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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e29821ff85a2a3000d226f99f62f89464028d5d6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3194baf623cd506d6fc0b534825e986ed15f56d700450e07768b1b76cb2605f6 [INFO] running `Command { std: "docker" "start" "-a" "3194baf623cd506d6fc0b534825e986ed15f56d700450e07768b1b76cb2605f6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling autocfg v1.0.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 tokio v1.6.1 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling quote v1.0.9 [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: 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: associated function `new` is never used [INFO] [stdout] --> src/pointer/cell.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Cell { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(value: T) -> Cell { [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: variants `Shared` and `Exclusive` are never constructed [INFO] [stdout] --> src/pointer/refcell.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | enum RefState { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 10 | Unshared, [INFO] [stdout] 11 | Shared(usize), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | Exclusive, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RefState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [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: 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: fields `data` and `sender` are never read [INFO] [stdout] --> src/tokio/actor.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ActorMessage { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 12 | data: Request, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | sender: oneshot::Sender, [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: field `sender` is never read [INFO] [stdout] --> src/tokio/actor.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Pid { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 37 | sender: mpsc::Sender>, [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: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 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: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.29s [INFO] running `Command { std: "docker" "inspect" "3194baf623cd506d6fc0b534825e986ed15f56d700450e07768b1b76cb2605f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3194baf623cd506d6fc0b534825e986ed15f56d700450e07768b1b76cb2605f6", kill_on_drop: false }` [INFO] [stdout] 3194baf623cd506d6fc0b534825e986ed15f56d700450e07768b1b76cb2605f6