[INFO] cloning repository https://github.com/meisZWFLZ/switch-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/meisZWFLZ/switch-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmeisZWFLZ%2Fswitch-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmeisZWFLZ%2Fswitch-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0e31fb01b520d8f26c64c1915bcd684df6f7d7b1
[INFO] checking meisZWFLZ/switch-rs against try#48c9d93cf65d550d124c40108859fd993778c157 for pr-153692-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmeisZWFLZ%2Fswitch-rs" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/meisZWFLZ/switch-rs
[INFO] finished tweaking git repo https://github.com/meisZWFLZ/switch-rs
[INFO] tweaked toml for git repo https://github.com/meisZWFLZ/switch-rs written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/meisZWFLZ/switch-rs on toolchain 48c9d93cf65d550d124c40108859fd993778c157
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+48c9d93cf65d550d124c40108859fd993778c157" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/meisZWFLZ/switch-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" "+48c9d93cf65d550d124c40108859fd993778c157" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+48c9d93cf65d550d124c40108859fd993778c157" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e7eaeb0ead479a16ae84d7142f9c640ecbb8b88c67f6893a603b6ef3f417ce8e
[INFO] running `Command { std: "docker" "start" "-a" "e7eaeb0ead479a16ae84d7142f9c640ecbb8b88c67f6893a603b6ef3f417ce8e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e7eaeb0ead479a16ae84d7142f9c640ecbb8b88c67f6893a603b6ef3f417ce8e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e7eaeb0ead479a16ae84d7142f9c640ecbb8b88c67f6893a603b6ef3f417ce8e", kill_on_drop: false }`
[INFO] [stdout] e7eaeb0ead479a16ae84d7142f9c640ecbb8b88c67f6893a603b6ef3f417ce8e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+48c9d93cf65d550d124c40108859fd993778c157" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9863c65aca295d1a959d6869e21e452399f54702a286c4f1b51a9376704cabc2
[INFO] running `Command { std: "docker" "start" "-a" "9863c65aca295d1a959d6869e21e452399f54702a286c4f1b51a9376704cabc2", kill_on_drop: false }`
[INFO] [stderr]     Checking switch-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `cell::RefCell`, `collections::VecDeque`, and `rc::Rc`
[INFO] [stdout]  --> src/main.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{cell::RefCell, collections::VecDeque, rc::Rc};
[INFO] [stdout]   |           ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `any::Any` and `net`
[INFO] [stdout]  --> src/network.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     any::Any,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 6 |     net,
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `devices`
[INFO] [stdout]    --> src/network.rs:141:13
[INFO] [stdout]     |
[INFO] [stdout] 141 |         let devices: HashMap<Rc<Node<M>>, (Rc<dyn Device<M>>, HashMap<InterfaceId, Rc<Node<M>>>)> =
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_devices`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ReceivedPacket` is never constructed
[INFO] [stdout]   --> src/device.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct ReceivedPacket<M> {
[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 `SentPacket` is never constructed
[INFO] [stdout]   --> src/device.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub struct SentPacket<M> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `PortLimit` is never used
[INFO] [stdout]   --> src/device.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum PortLimit {
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `process` is never used
[INFO] [stdout]   --> src/device.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub trait Device<M> {
[INFO] [stdout]    |           ------ method in this trait
[INFO] [stdout] 46 |     // const PORT_LIMIT: PortLimit;
[INFO] [stdout] 47 |     fn process(&mut self, packets: Vec<ReceivedPacket<M>>) -> Vec<SentPacket<M>>;
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `address` and `interfaces` are never read
[INFO] [stdout]   --> src/device.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct Client {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 63 |     address: MacAddress,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 64 |     interfaces: Vec<InterfaceId>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Client` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Packet` is never constructed
[INFO] [stdout]  --> src/packet.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Packet<M> {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GlobalInterfaceId` is never constructed
[INFO] [stdout]    --> src/network.rs:174:8
[INFO] [stdout]     |
[INFO] [stdout] 174 | struct GlobalInterfaceId<M> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Connection` is never constructed
[INFO] [stdout]    --> src/network.rs:179:8
[INFO] [stdout]     |
[INFO] [stdout] 179 | struct Connection<M>(GlobalInterfaceId<M>, GlobalInterfaceId<M>);
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `devices` and `connections` are never read
[INFO] [stdout]    --> src/network.rs:182:5
[INFO] [stdout]     |
[INFO] [stdout] 181 | pub struct Network<M> {
[INFO] [stdout]     |            ------- fields in this struct
[INFO] [stdout] 182 |     devices: HashSet<Rc<dyn Device<M>>>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 183 |     connections: HashSet<Rc<dyn Device<M>>>,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `step` is never used
[INFO] [stdout]    --> src/network.rs:190:8
[INFO] [stdout]     |
[INFO] [stdout] 186 | impl<M> Network<M> {
[INFO] [stdout]     | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 190 |     fn step(&mut self) {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `cell::RefCell`, `collections::VecDeque`, and `rc::Rc`
[INFO] [stdout]  --> src/main.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{cell::RefCell, collections::VecDeque, rc::Rc};
[INFO] [stdout]   |           ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `any::Any` and `net`
[INFO] [stdout]  --> src/network.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     any::Any,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 6 |     net,
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `devices`
[INFO] [stdout]    --> src/network.rs:141:13
[INFO] [stdout]     |
[INFO] [stdout] 141 |         let devices: HashMap<Rc<Node<M>>, (Rc<dyn Device<M>>, HashMap<InterfaceId, Rc<Node<M>>>)> =
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_devices`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ReceivedPacket` is never constructed
[INFO] [stdout]   --> src/device.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct ReceivedPacket<M> {
[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 `SentPacket` is never constructed
[INFO] [stdout]   --> src/device.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub struct SentPacket<M> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `PortLimit` is never used
[INFO] [stdout]   --> src/device.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub enum PortLimit {
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `process` is never used
[INFO] [stdout]   --> src/device.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub trait Device<M> {
[INFO] [stdout]    |           ------ method in this trait
[INFO] [stdout] 46 |     // const PORT_LIMIT: PortLimit;
[INFO] [stdout] 47 |     fn process(&mut self, packets: Vec<ReceivedPacket<M>>) -> Vec<SentPacket<M>>;
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `address` and `interfaces` are never read
[INFO] [stdout]   --> src/device.rs:63:5
[INFO] [stdout]    |
[INFO] [stdout] 62 | pub struct Client {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 63 |     address: MacAddress,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 64 |     interfaces: Vec<InterfaceId>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Client` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Packet` is never constructed
[INFO] [stdout]  --> src/packet.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Packet<M> {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `GlobalInterfaceId` is never constructed
[INFO] [stdout]    --> src/network.rs:174:8
[INFO] [stdout]     |
[INFO] [stdout] 174 | struct GlobalInterfaceId<M> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Connection` is never constructed
[INFO] [stdout]    --> src/network.rs:179:8
[INFO] [stdout]     |
[INFO] [stdout] 179 | struct Connection<M>(GlobalInterfaceId<M>, GlobalInterfaceId<M>);
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `devices` and `connections` are never read
[INFO] [stdout]    --> src/network.rs:182:5
[INFO] [stdout]     |
[INFO] [stdout] 181 | pub struct Network<M> {
[INFO] [stdout]     |            ------- fields in this struct
[INFO] [stdout] 182 |     devices: HashSet<Rc<dyn Device<M>>>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 183 |     connections: HashSet<Rc<dyn Device<M>>>,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `step` is never used
[INFO] [stdout]    --> src/network.rs:190:8
[INFO] [stdout]     |
[INFO] [stdout] 186 | impl<M> Network<M> {
[INFO] [stdout]     | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 190 |     fn step(&mut self) {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s
[INFO] running `Command { std: "docker" "inspect" "9863c65aca295d1a959d6869e21e452399f54702a286c4f1b51a9376704cabc2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9863c65aca295d1a959d6869e21e452399f54702a286c4f1b51a9376704cabc2", kill_on_drop: false }`
[INFO] [stdout] 9863c65aca295d1a959d6869e21e452399f54702a286c4f1b51a9376704cabc2
