[INFO] cloning repository https://github.com/msekletar/prefixdevname [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/msekletar/prefixdevname" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsekletar%2Fprefixdevname", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsekletar%2Fprefixdevname'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ca3b9137f7b362396fe4708f8280953a0ac1de6 [INFO] testing msekletar/prefixdevname against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsekletar%2Fprefixdevname" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/msekletar/prefixdevname on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/msekletar/prefixdevname [INFO] finished tweaking git repo https://github.com/msekletar/prefixdevname [INFO] tweaked toml for git repo https://github.com/msekletar/prefixdevname written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/msekletar/prefixdevname already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 333eaec61f1cbffa99add550f059c0e5ba17ffb7fd6ca28085bb0c49f52db792 [INFO] running `Command { std: "docker" "start" "-a" "333eaec61f1cbffa99add550f059c0e5ba17ffb7fd6ca28085bb0c49f52db792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "333eaec61f1cbffa99add550f059c0e5ba17ffb7fd6ca28085bb0c49f52db792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "333eaec61f1cbffa99add550f059c0e5ba17ffb7fd6ca28085bb0c49f52db792", kill_on_drop: false }` [INFO] [stdout] 333eaec61f1cbffa99add550f059c0e5ba17ffb7fd6ca28085bb0c49f52db792 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] be0440ad26e76794fb6831fbb77889a92be436071cc42f449f996f4ba918d252 [INFO] running `Command { std: "docker" "start" "-a" "be0440ad26e76794fb6831fbb77889a92be436071cc42f449f996f4ba918d252", kill_on_drop: false }` [INFO] [stderr] Compiling regex v1.0.1 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling rust-ini v0.12.2 [INFO] [stderr] Compiling atty v0.2.10 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.6.1 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling log v0.4.3 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling libudev v0.2.0 [INFO] [stderr] Compiling env_logger v0.5.10 [INFO] [stderr] Compiling prefixdevname v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:29:72 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(link_name: &T) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:53:96 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn new_with_hwaddr(link_name: &T, hwaddr: &T) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:77:73 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn link_name_sane(link_name: &T) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:98:53 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn write_link_file(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:142:46 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn load(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:163:56 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn next_link_name(&self) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:174:89 [INFO] [stdout] | [INFO] [stdout] 174 | fn match_ethernet_links(udev_enumerate: &mut libudev::Enumerator) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:181:63 [INFO] [stdout] | [INFO] [stdout] 181 | fn enumerate_links_from_udev(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:215:64 [INFO] [stdout] | [INFO] [stdout] 215 | fn enumerate_links_from_files(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sema.rs:14:63 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new_with_name(name: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:14:70 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rename_needed(ifname: &str, prefix: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:57:72 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn hwaddr_normalize(hwaddr: &T) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:72:57 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn hwaddr_from_event_device() -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:85:63 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn get_prefix_from_file(path: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/config.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | / lazy_static! { [INFO] [stdout] 34 | | static ref RE: Regex = Regex::new(r"([[:alpha:]]+)\d+").unwrap(); [INFO] [stdout] 35 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/config.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | / lazy_static! { [INFO] [stdout] 59 | | static ref RE: Regex = Regex::new(r"([[:alpha:]]+)\d+").unwrap(); [INFO] [stdout] 60 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/config.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | let i = name.trim_left_matches(&prefix).parse::()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/config.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | let i = name.trim_left_matches(&prefix).parse::()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/config.rs:169:36 [INFO] [stdout] | [INFO] [stdout] 169 | let last_index = last.name.trim_left_matches(&self.ifname_prefix).parse::()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/sema.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | name: CString [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 20.38s [INFO] running `Command { std: "docker" "inspect" "be0440ad26e76794fb6831fbb77889a92be436071cc42f449f996f4ba918d252", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be0440ad26e76794fb6831fbb77889a92be436071cc42f449f996f4ba918d252", kill_on_drop: false }` [INFO] [stdout] be0440ad26e76794fb6831fbb77889a92be436071cc42f449f996f4ba918d252 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 972f10a5cf2fe34f01bb064de679bb3d618dc467ca969d2a4ae85a6cbe324782 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "972f10a5cf2fe34f01bb064de679bb3d618dc467ca969d2a4ae85a6cbe324782", kill_on_drop: false }` [INFO] [stderr] Compiling prefixdevname v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:29:72 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(link_name: &T) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:53:96 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn new_with_hwaddr(link_name: &T, hwaddr: &T) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:77:73 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn link_name_sane(link_name: &T) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:98:53 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn write_link_file(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:142:46 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn load(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:163:56 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn next_link_name(&self) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:174:89 [INFO] [stdout] | [INFO] [stdout] 174 | fn match_ethernet_links(udev_enumerate: &mut libudev::Enumerator) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:181:63 [INFO] [stdout] | [INFO] [stdout] 181 | fn enumerate_links_from_udev(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:215:64 [INFO] [stdout] | [INFO] [stdout] 215 | fn enumerate_links_from_files(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/config.rs:324:39 [INFO] [stdout] | [INFO] [stdout] 324 | fn mock_sysfs() -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/sema.rs:14:63 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new_with_name(name: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:14:70 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rename_needed(ifname: &str, prefix: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:57:72 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn hwaddr_normalize(hwaddr: &T) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:72:57 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn hwaddr_from_event_device() -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/util.rs:85:63 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn get_prefix_from_file(path: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/config.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | / lazy_static! { [INFO] [stdout] 34 | | static ref RE: Regex = Regex::new(r"([[:alpha:]]+)\d+").unwrap(); [INFO] [stdout] 35 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/config.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | / lazy_static! { [INFO] [stdout] 59 | | static ref RE: Regex = Regex::new(r"([[:alpha:]]+)\d+").unwrap(); [INFO] [stdout] 60 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/config.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | let i = name.trim_left_matches(&prefix).parse::()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/config.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | let i = name.trim_left_matches(&prefix).parse::()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::str::::trim_left_matches`: superseded by `trim_start_matches` [INFO] [stdout] --> src/config.rs:169:36 [INFO] [stdout] | [INFO] [stdout] 169 | let last_index = last.name.trim_left_matches(&self.ifname_prefix).parse::()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.prefixdevname.4c292950-cgu.9.rcgu.o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8.35essuo2aimoc2la.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/lib/x86_64-linux-gnu" "-L" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lumockdev" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-ea87b6c2fe761216.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-91b9e0d063734789.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-2ddfc09cde4cdc0c.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-d066e6f50a258123.rlib" "/opt/rustwide/target/debug/deps/libini-b77763b73d94182a.rlib" "/opt/rustwide/target/debug/deps/liblibudev-2a2721350f7aa11b.rlib" "/opt/rustwide/target/debug/deps/liblibudev_sys-b3b1ebade14c1d8e.rlib" "/opt/rustwide/target/debug/deps/libenv_logger-acc9462ebf36bea5.rlib" "/opt/rustwide/target/debug/deps/libregex-fe9c66274a9e7290.rlib" "/opt/rustwide/target/debug/deps/libutf8_ranges-d9dab086e6370d17.rlib" "/opt/rustwide/target/debug/deps/libregex_syntax-627754b70104061a.rlib" "/opt/rustwide/target/debug/deps/libucd_util-409a4dac3dbdbcb9.rlib" "/opt/rustwide/target/debug/deps/libthread_local-f6d54ee50d8f5985.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-60ae8678064c0479.rlib" "/opt/rustwide/target/debug/deps/libunreachable-75903259687ac390.rlib" "/opt/rustwide/target/debug/deps/libvoid-7b6fd157ed8721ab.rlib" "/opt/rustwide/target/debug/deps/libaho_corasick-9157dddfb1c26ce9.rlib" "/opt/rustwide/target/debug/deps/libmemchr-870c7e744f2b441b.rlib" "/opt/rustwide/target/debug/deps/libatty-a787d1d79ff7fba3.rlib" "/opt/rustwide/target/debug/deps/liblibc-d3e2538f62e14c74.rlib" "/opt/rustwide/target/debug/deps/libhumantime-2cbc458c2d53e329.rlib" "/opt/rustwide/target/debug/deps/libquick_error-63d061bf0c7acb92.rlib" "/opt/rustwide/target/debug/deps/libtermcolor-54ae58d8ebdb439d.rlib" "/opt/rustwide/target/debug/deps/liblog-0b08b2521380bb5a.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-cc1ba404faed2e9e.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-29e5e596e889a0aa.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-1b145d9fcdc08832.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-5b037ee6b77e2ff0.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9635a64fca0ebd28.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-a7574eb9bb7a8fc5.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-f5fa1dc334dcaeeb.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-6ee570a898e75ef0.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-afb62f29a0815772.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-a632746535fd9988.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-25acc307bcb1d7b6.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-377721a625f6ace7.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-43c01431c8a4ee6f.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-5f74725679453254.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-2b35d8999819161d.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a81f2980c3f58cf2.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-57b4679830289815.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-2a6a2797f7a73818.rlib" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-0e3656b1fda5fd7b.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-13b419dfbcf9c1f8.rlib" "-Wl,-Bdynamic" "-ludev" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/722e1797249a965b6335aebd65d777f917e498f1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/prefixdevname-c36e47563e59bcb8" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lumockdev [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `prefixdevname` due to 2 previous errors; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "972f10a5cf2fe34f01bb064de679bb3d618dc467ca969d2a4ae85a6cbe324782", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "972f10a5cf2fe34f01bb064de679bb3d618dc467ca969d2a4ae85a6cbe324782", kill_on_drop: false }` [INFO] [stdout] 972f10a5cf2fe34f01bb064de679bb3d618dc467ca969d2a4ae85a6cbe324782