[INFO] fetching crate libcgroup_rs 0.1.0... [INFO] building libcgroup_rs-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate libcgroup_rs 0.1.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate libcgroup_rs 0.1.0 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libcgroup_rs 0.1.0 [INFO] finished tweaking crates.io crate libcgroup_rs 0.1.0 [INFO] tweaked toml for crates.io crate libcgroup_rs 0.1.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 2 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b0ed276973f2b8e404b10ec36bd1737f8b8bbd62c650aed554850c3dc66e7cd [INFO] running `Command { std: "docker" "start" "-a" "6b0ed276973f2b8e404b10ec36bd1737f8b8bbd62c650aed554850c3dc66e7cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b0ed276973f2b8e404b10ec36bd1737f8b8bbd62c650aed554850c3dc66e7cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b0ed276973f2b8e404b10ec36bd1737f8b8bbd62c650aed554850c3dc66e7cd", kill_on_drop: false }` [INFO] [stdout] 6b0ed276973f2b8e404b10ec36bd1737f8b8bbd62c650aed554850c3dc66e7cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 358c6f923a15cda33625a70e7d6234b3db538d1d528588ae044dc5f110128d96 [INFO] running `Command { std: "docker" "start" "-a" "358c6f923a15cda33625a70e7d6234b3db538d1d528588ae044dc5f110128d96", kill_on_drop: false }` [INFO] [stderr] Compiling libcgroup_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `name` and `c_groups` are never read [INFO] [stdout] --> src/manipulation.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct CGroupControllerBuilder{ [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 95 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | c_groups:*mut cgroup, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CGroupControllerBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/manipulation.rs:569:38 [INFO] [stdout] | [INFO] [stdout] 569 | match Self::new(self.name.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:124:59 [INFO] [stdout] | [INFO] [stdout] 124 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:125:59 [INFO] [stdout] | [INFO] [stdout] 125 | base_path: std::ffi::CString::new(base_path)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:228:59 [INFO] [stdout] | [INFO] [stdout] 228 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:229:59 [INFO] [stdout] | [INFO] [stdout] 229 | path_name: std::ffi::CString::new(path_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:309:55 [INFO] [stdout] | [INFO] [stdout] 309 | cg_name: std::ffi::CString::new(cg_name)?.as_ptr(), [INFO] [stdout] | -------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:310:59 [INFO] [stdout] | [INFO] [stdout] 310 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "358c6f923a15cda33625a70e7d6234b3db538d1d528588ae044dc5f110128d96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "358c6f923a15cda33625a70e7d6234b3db538d1d528588ae044dc5f110128d96", kill_on_drop: false }` [INFO] [stdout] 358c6f923a15cda33625a70e7d6234b3db538d1d528588ae044dc5f110128d96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d89e25f49aa050a7dd27b7457869099cbff2efbe54494ea375c3916984dfe864 [INFO] running `Command { std: "docker" "start" "-a" "d89e25f49aa050a7dd27b7457869099cbff2efbe54494ea375c3916984dfe864", kill_on_drop: false }` [INFO] [stdout] warning: fields `name` and `c_groups` are never read [INFO] [stdout] --> src/manipulation.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct CGroupControllerBuilder{ [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 95 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | c_groups:*mut cgroup, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CGroupControllerBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/manipulation.rs:569:38 [INFO] [stdout] | [INFO] [stdout] 569 | match Self::new(self.name.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:124:59 [INFO] [stdout] | [INFO] [stdout] 124 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:125:59 [INFO] [stdout] | [INFO] [stdout] 125 | base_path: std::ffi::CString::new(base_path)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:228:59 [INFO] [stdout] | [INFO] [stdout] 228 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:229:59 [INFO] [stdout] | [INFO] [stdout] 229 | path_name: std::ffi::CString::new(path_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling libcgroup_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:309:55 [INFO] [stdout] | [INFO] [stdout] 309 | cg_name: std::ffi::CString::new(cg_name)?.as_ptr(), [INFO] [stdout] | -------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:310:59 [INFO] [stdout] | [INFO] [stdout] 310 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustc6jIIRX/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-5b337cbd81a5a91e.rlib,libgetopts-b3d751a359439e5c.rlib,libunicode_width-b94cd6aeaf6d0888.rlib,librustc_std_workspace_std-7eff89145b2e518b.rlib}" "/opt/rustwide/target/debug/deps/{liblibcgroup_rs-57cfbd5dafcd929c.rlib,liblibc-49e6a306c6f29363.rlib,liblog-c2280e82187d60ac.rlib}" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-c961c021679cb080.rlib,libpanic_unwind-cf53e161ed1cff61.rlib,libobject-cb648d8066e1f446.rlib,libmemchr-c5d4f358058ea4b7.rlib,libaddr2line-c3d71356250e6616.rlib,libgimli-f87b04c9c9484f11.rlib,librustc_demangle-bcb6f2ec634b4b7c.rlib,libstd_detect-7c9c37927c8e6d84.rlib,libhashbrown-c2c9b281c2c2a277.rlib,librustc_std_workspace_alloc-436fb8ec294074ae.rlib,libminiz_oxide-8d1606a7c3a02301.rlib,libadler-b9d368accc529045.rlib,libunwind-8fa2d9148abc4bd4.rlib,libcfg_if-04c8eb04b1ca0e2e.rlib,liblibc-ac32c271036f683f.rlib,liballoc-954db56effadca87.rlib,librustc_std_workspace_core-395a38b8e0851c9b.rlib,libcore-d453bab70303062c.rlib,libcompiler_builtins-d643a4794e0b0ebc.rlib}" "-Wl,-Bdynamic" "-lcgroup" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/test_task-5c684cfaa9b0fa9d" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -lcgroup [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libcgroup_rs` (test "test_task") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcBC9bkp/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-5b337cbd81a5a91e.rlib,libgetopts-b3d751a359439e5c.rlib,libunicode_width-b94cd6aeaf6d0888.rlib,librustc_std_workspace_std-7eff89145b2e518b.rlib}" "/opt/rustwide/target/debug/deps/{liblibcgroup_rs-57cfbd5dafcd929c.rlib,liblibc-49e6a306c6f29363.rlib,liblog-c2280e82187d60ac.rlib}" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-c961c021679cb080.rlib,libpanic_unwind-cf53e161ed1cff61.rlib,libobject-cb648d8066e1f446.rlib,libmemchr-c5d4f358058ea4b7.rlib,libaddr2line-c3d71356250e6616.rlib,libgimli-f87b04c9c9484f11.rlib,librustc_demangle-bcb6f2ec634b4b7c.rlib,libstd_detect-7c9c37927c8e6d84.rlib,libhashbrown-c2c9b281c2c2a277.rlib,librustc_std_workspace_alloc-436fb8ec294074ae.rlib,libminiz_oxide-8d1606a7c3a02301.rlib,libadler-b9d368accc529045.rlib,libunwind-8fa2d9148abc4bd4.rlib,libcfg_if-04c8eb04b1ca0e2e.rlib,liblibc-ac32c271036f683f.rlib,liballoc-954db56effadca87.rlib,librustc_std_workspace_core-395a38b8e0851c9b.rlib,libcore-d453bab70303062c.rlib,libcompiler_builtins-d643a4794e0b0ebc.rlib}" "-Wl,-Bdynamic" "-lcgroup" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/test_iter-9f3efec29b453d9b" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -lcgroup [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustc4rTO1C/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-5b337cbd81a5a91e.rlib,libgetopts-b3d751a359439e5c.rlib,libunicode_width-b94cd6aeaf6d0888.rlib,librustc_std_workspace_std-7eff89145b2e518b.rlib}" "/opt/rustwide/target/debug/deps/{liblibcgroup_rs-57cfbd5dafcd929c.rlib,liblibc-49e6a306c6f29363.rlib,liblog-c2280e82187d60ac.rlib}" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-c961c021679cb080.rlib,libpanic_unwind-cf53e161ed1cff61.rlib,libobject-cb648d8066e1f446.rlib,libmemchr-c5d4f358058ea4b7.rlib,libaddr2line-c3d71356250e6616.rlib,libgimli-f87b04c9c9484f11.rlib,librustc_demangle-bcb6f2ec634b4b7c.rlib,libstd_detect-7c9c37927c8e6d84.rlib,libhashbrown-c2c9b281c2c2a277.rlib,librustc_std_workspace_alloc-436fb8ec294074ae.rlib,libminiz_oxide-8d1606a7c3a02301.rlib,libadler-b9d368accc529045.rlib,libunwind-8fa2d9148abc4bd4.rlib,libcfg_if-04c8eb04b1ca0e2e.rlib,liblibc-ac32c271036f683f.rlib,liballoc-954db56effadca87.rlib,librustc_std_workspace_core-395a38b8e0851c9b.rlib,libcore-d453bab70303062c.rlib,libcompiler_builtins-d643a4794e0b0ebc.rlib}" "-Wl,-Bdynamic" "-lcgroup" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/test_work-e20a9d1eb08e2b5d" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -lcgroup [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libcgroup_rs` (test "test_iter") due to 1 previous error [INFO] [stderr] error: could not compile `libcgroup_rs` (test "test_work") due to 1 previous error [INFO] [stdout] warning: fields `name` and `c_groups` are never read [INFO] [stdout] --> src/manipulation.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 94 | pub struct CGroupControllerBuilder{ [INFO] [stdout] | ----------------------- fields in this struct [INFO] [stdout] 95 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | c_groups:*mut cgroup, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CGroupControllerBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/manipulation.rs:569:38 [INFO] [stdout] | [INFO] [stdout] 569 | match Self::new(self.name.clone()) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:124:59 [INFO] [stdout] | [INFO] [stdout] 124 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:125:59 [INFO] [stdout] | [INFO] [stdout] 125 | base_path: std::ffi::CString::new(base_path)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:228:59 [INFO] [stdout] | [INFO] [stdout] 228 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:229:59 [INFO] [stdout] | [INFO] [stdout] 229 | path_name: std::ffi::CString::new(path_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:309:55 [INFO] [stdout] | [INFO] [stdout] 309 | cg_name: std::ffi::CString::new(cg_name)?.as_ptr(), [INFO] [stdout] | -------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/iterators.rs:310:59 [INFO] [stdout] | [INFO] [stdout] 310 | ctrl_name: std::ffi::CString::new(ctrl_name)?.as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcBDYMfD/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bdynamic" "-lcgroup" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{liblibc-49e6a306c6f29363.rlib}" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-5b337cbd81a5a91e.rlib,libgetopts-b3d751a359439e5c.rlib,libunicode_width-b94cd6aeaf6d0888.rlib,librustc_std_workspace_std-7eff89145b2e518b.rlib}" "/opt/rustwide/target/debug/deps/{liblog-c2280e82187d60ac.rlib}" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-c961c021679cb080.rlib,libpanic_unwind-cf53e161ed1cff61.rlib,libobject-cb648d8066e1f446.rlib,libmemchr-c5d4f358058ea4b7.rlib,libaddr2line-c3d71356250e6616.rlib,libgimli-f87b04c9c9484f11.rlib,librustc_demangle-bcb6f2ec634b4b7c.rlib,libstd_detect-7c9c37927c8e6d84.rlib,libhashbrown-c2c9b281c2c2a277.rlib,librustc_std_workspace_alloc-436fb8ec294074ae.rlib,libminiz_oxide-8d1606a7c3a02301.rlib,libadler-b9d368accc529045.rlib,libunwind-8fa2d9148abc4bd4.rlib,libcfg_if-04c8eb04b1ca0e2e.rlib,liblibc-ac32c271036f683f.rlib,liballoc-954db56effadca87.rlib,librustc_std_workspace_core-395a38b8e0851c9b.rlib,libcore-d453bab70303062c.rlib,libcompiler_builtins-d643a4794e0b0ebc.rlib}" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/libcgroup_rs-840c3f7ef6d3afc7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: unable to find library -lcgroup [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libcgroup_rs` (lib test) due to 1 previous error; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d89e25f49aa050a7dd27b7457869099cbff2efbe54494ea375c3916984dfe864", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d89e25f49aa050a7dd27b7457869099cbff2efbe54494ea375c3916984dfe864", kill_on_drop: false }` [INFO] [stdout] d89e25f49aa050a7dd27b7457869099cbff2efbe54494ea375c3916984dfe864