[INFO] fetching crate libvirt 0.1.0... [INFO] testing libvirt-0.1.0 against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] extracting crate libvirt 0.1.0 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate libvirt 0.1.0 on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate libvirt 0.1.0 [INFO] removed path dependency libvirt-sys from crates.io crate libvirt 0.1.0 [INFO] finished tweaking crates.io crate libvirt 0.1.0 [INFO] tweaked toml for crates.io crate libvirt 0.1.0 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee5815628b6f7039b8bb62f0478b5ae4e83d27b675186f4db6d4ff80f0cb8c6a [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" "ee5815628b6f7039b8bb62f0478b5ae4e83d27b675186f4db6d4ff80f0cb8c6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee5815628b6f7039b8bb62f0478b5ae4e83d27b675186f4db6d4ff80f0cb8c6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee5815628b6f7039b8bb62f0478b5ae4e83d27b675186f4db6d4ff80f0cb8c6a", kill_on_drop: false }` [INFO] [stdout] ee5815628b6f7039b8bb62f0478b5ae4e83d27b675186f4db6d4ff80f0cb8c6a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "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] c3f07256e51f082770025d84358e00db56ee55d4a2fe7a2dcee4d936878c0bd9 [INFO] running `Command { std: "docker" "start" "-a" "c3f07256e51f082770025d84358e00db56ee55d4a2fe7a2dcee4d936878c0bd9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.1.12 [INFO] [stderr] Compiling libvirt-sys v1.2.18 [INFO] [stderr] Compiling libvirt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/connection.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{string, ptr, mem, slice}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string` [INFO] [stdout] --> src/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::string; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/domain.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{string, ptr, mem}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `node` [INFO] [stdout] --> src/domain.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use node; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string` [INFO] [stdout] --> src/network.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::string; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ptr`, `string` [INFO] [stdout] --> src/interface.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{string, ptr}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/network.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | let out: *mut i32 = match val { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut ids = ptr::null_mut(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create` [INFO] [stdout] --> src/interface.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn create(self, flags: u32) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `destroy` [INFO] [stdout] --> src/interface.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn destroy(self, flags: u32) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_active` [INFO] [stdout] --> src/interface.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn is_active(self) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mac` [INFO] [stdout] --> src/interface.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn mac(self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/interface.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn name(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `xml_desc` [INFO] [stdout] --> src/interface.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn xml_desc(self, flags: u32) -> Result{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `undefine` [INFO] [stdout] --> src/interface.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn undefine(self) -> Result<(), VirError>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free` [INFO] [stdout] --> src/interface.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn free(self) -> Result<(), VirError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/connection.rs:302:91 [INFO] [stdout] | [INFO] [stdout] 302 | let dptr = virt::virDomainLookupByName(self.conn, CString::new(name).unwrap().as_ptr()); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will 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: `#[warn(temporary_cstring_as_ptr)]` on by default [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 https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cUri` should have a snake case name [INFO] [stdout] --> src/connection.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let cUri = CString::new(uri).unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `c_uri` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pDomain` should have a snake case name [INFO] [stdout] --> src/connection.rs:313:17 [INFO] [stdout] | [INFO] [stdout] 313 | let pDomain = virt::virDomainCreateXML(self.conn, cxml.as_ptr(), flags); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `p_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pDomain` should have a snake case name [INFO] [stdout] --> src/connection.rs:324:17 [INFO] [stdout] | [INFO] [stdout] 324 | let pDomain = virt::virDomainDefineXML(self.conn, cxml.as_ptr()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `p_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.17s [INFO] running `Command { std: "docker" "inspect" "c3f07256e51f082770025d84358e00db56ee55d4a2fe7a2dcee4d936878c0bd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3f07256e51f082770025d84358e00db56ee55d4a2fe7a2dcee4d936878c0bd9", kill_on_drop: false }` [INFO] [stdout] c3f07256e51f082770025d84358e00db56ee55d4a2fe7a2dcee4d936878c0bd9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen" "--no-run" "--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] eb2fe31756f473fce58e1e5236b52bd9c21b707abd3ef132915e367ee5f717f7 [INFO] running `Command { std: "docker" "start" "-a" "eb2fe31756f473fce58e1e5236b52bd9c21b707abd3ef132915e367ee5f717f7", kill_on_drop: false }` [INFO] [stderr] Compiling libvirt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/connection.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{string, ptr, mem, slice}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string` [INFO] [stdout] --> src/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::string; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/domain.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{string, ptr, mem}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `node` [INFO] [stdout] --> src/domain.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use node; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string` [INFO] [stdout] --> src/network.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::string; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ptr`, `string` [INFO] [stdout] --> src/interface.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{string, ptr}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/network.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | let out: *mut i32 = match val { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut ids = ptr::null_mut(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create` [INFO] [stdout] --> src/interface.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn create(self, flags: u32) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `destroy` [INFO] [stdout] --> src/interface.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn destroy(self, flags: u32) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_active` [INFO] [stdout] --> src/interface.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn is_active(self) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mac` [INFO] [stdout] --> src/interface.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn mac(self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/interface.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn name(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `xml_desc` [INFO] [stdout] --> src/interface.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn xml_desc(self, flags: u32) -> Result{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `undefine` [INFO] [stdout] --> src/interface.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn undefine(self) -> Result<(), VirError>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free` [INFO] [stdout] --> src/interface.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn free(self) -> Result<(), VirError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/connection.rs:302:91 [INFO] [stdout] | [INFO] [stdout] 302 | let dptr = virt::virDomainLookupByName(self.conn, CString::new(name).unwrap().as_ptr()); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will 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: `#[warn(temporary_cstring_as_ptr)]` on by default [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 https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cUri` should have a snake case name [INFO] [stdout] --> src/connection.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let cUri = CString::new(uri).unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `c_uri` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pDomain` should have a snake case name [INFO] [stdout] --> src/connection.rs:313:17 [INFO] [stdout] | [INFO] [stdout] 313 | let pDomain = virt::virDomainCreateXML(self.conn, cxml.as_ptr(), flags); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `p_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pDomain` should have a snake case name [INFO] [stdout] --> src/connection.rs:324:17 [INFO] [stdout] | [INFO] [stdout] 324 | let pDomain = virt::virDomainDefineXML(self.conn, cxml.as_ptr()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `p_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/connection.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{string, ptr, mem, slice}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string` [INFO] [stdout] --> src/node.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::string; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `string` [INFO] [stdout] --> src/domain.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{string, ptr, mem}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `node` [INFO] [stdout] --> src/domain.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use node; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string` [INFO] [stdout] --> src/network.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::string; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ptr`, `string` [INFO] [stdout] --> src/interface.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{string, ptr}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/network.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | let out: *mut i32 = match val { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | let mut ids = ptr::null_mut(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create` [INFO] [stdout] --> src/interface.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn create(self, flags: u32) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `destroy` [INFO] [stdout] --> src/interface.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn destroy(self, flags: u32) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_active` [INFO] [stdout] --> src/interface.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn is_active(self) -> Result<(), VirError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mac` [INFO] [stdout] --> src/interface.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn mac(self) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> src/interface.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn name(self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `xml_desc` [INFO] [stdout] --> src/interface.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn xml_desc(self, flags: u32) -> Result{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `undefine` [INFO] [stdout] --> src/interface.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn undefine(self) -> Result<(), VirError>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `free` [INFO] [stdout] --> src/interface.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn free(self) -> Result<(), VirError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/connection.rs:302:91 [INFO] [stdout] | [INFO] [stdout] 302 | let dptr = virt::virDomainLookupByName(self.conn, CString::new(name).unwrap().as_ptr()); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will 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: `#[warn(temporary_cstring_as_ptr)]` on by default [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 https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `cUri` should have a snake case name [INFO] [stdout] --> src/connection.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let cUri = CString::new(uri).unwrap(); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `c_uri` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pDomain` should have a snake case name [INFO] [stdout] --> src/connection.rs:313:17 [INFO] [stdout] | [INFO] [stdout] 313 | let pDomain = virt::virDomainCreateXML(self.conn, cxml.as_ptr(), flags); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `p_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pDomain` should have a snake case name [INFO] [stdout] --> src/connection.rs:324:17 [INFO] [stdout] | [INFO] [stdout] 324 | let pDomain = virt::virDomainDefineXML(self.conn, cxml.as_ptr()); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `p_domain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit code: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.0.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.1.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.10.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.11.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.12.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.13.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.14.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.15.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.2.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.3.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.4.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.5.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.6.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.7.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.8.rcgu.o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.hellolibvirt.6v0usowy-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1" "/opt/rustwide/target/debug/examples/hellolibvirt-bca7e4bea50eced1.3823rdu9wotdpsvy.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/liblibvirt-a81a1eb95e720eeb.rlib" "/opt/rustwide/target/debug/deps/liblibvirt_sys-3c7a1e7b36a55079.rlib" "/opt/rustwide/target/debug/deps/liblibc-12307ab64947e305.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c659455244c9d2ca.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-448643d99e633b5d.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c3d631a525883a.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-d7659a11bb201e01.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-9aceb6f83a33a9b6.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-876c3057c8a2a7c2.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-2f02aa3e24d2aa49.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-1d4694108f8cb543.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-79eaa6e630880f50.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-0df1a4ec96f80cf7.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-bba9b0f0f4d77257.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-f848f9c987265235.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0d5ea4f2d39b8e27.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c22053fa5fc00a3b.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-c52e5d6301e1bd59.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-2675a9a46b5cec89.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-6e3d052afeb9f711.rlib" "-Wl,-Bdynamic" "-lvirt" "-lvirt" "-lc" "-lm" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lvirt [INFO] [stdout] /usr/bin/ld: cannot find -lvirt [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `libvirt` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: linking with `cc` failed: exit code: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525.libvirt.3jeua7rt-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525.libvirt.3jeua7rt-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525.libvirt.3jeua7rt-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525.libvirt.3jeua7rt-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525.libvirt.3jeua7rt-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525.libvirt.3jeua7rt-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525.libvirt.3jeua7rt-cgu.6.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525" "/opt/rustwide/target/debug/deps/libvirt-edd77ec2819a1525.1spqdrchosibby4z.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-e400a06feeddb41f.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libterm-8ca745aec409b30d.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-dddd49119eca10c7.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-3f84b2ca2f59187b.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-53983bcf89dbd6ef.rlib" "/opt/rustwide/target/debug/deps/liblibvirt_sys-3c7a1e7b36a55079.rlib" "/opt/rustwide/target/debug/deps/liblibc-12307ab64947e305.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c659455244c9d2ca.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-448643d99e633b5d.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c7c3d631a525883a.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-d7659a11bb201e01.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-9aceb6f83a33a9b6.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-876c3057c8a2a7c2.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-2f02aa3e24d2aa49.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-1d4694108f8cb543.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-79eaa6e630880f50.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-0df1a4ec96f80cf7.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-bba9b0f0f4d77257.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-f848f9c987265235.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0d5ea4f2d39b8e27.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c22053fa5fc00a3b.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-c52e5d6301e1bd59.rlib" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-2675a9a46b5cec89.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/5d5ff84130da0d74c6ece368dbe821d8f83fa526/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-6e3d052afeb9f711.rlib" "-Wl,-Bdynamic" "-lvirt" "-lvirt" "-lc" "-lm" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lvirt [INFO] [stdout] /usr/bin/ld: cannot find -lvirt [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: build failed [INFO] running `Command { std: "docker" "inspect" "eb2fe31756f473fce58e1e5236b52bd9c21b707abd3ef132915e367ee5f717f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb2fe31756f473fce58e1e5236b52bd9c21b707abd3ef132915e367ee5f717f7", kill_on_drop: false }` [INFO] [stdout] eb2fe31756f473fce58e1e5236b52bd9c21b707abd3ef132915e367ee5f717f7