[INFO] fetching crate smbclient-sys 0.1.0... [INFO] checking smbclient-sys-0.1.0 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate smbclient-sys 0.1.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate smbclient-sys 0.1.0 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate smbclient-sys 0.1.0 [INFO] finished tweaking crates.io crate smbclient-sys 0.1.0 [INFO] tweaked toml for crates.io crate smbclient-sys 0.1.0 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nix v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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] 044f892c132e248d6516828e7339b064c47ca3f2f411dd422efa5c3f03d39dde [INFO] running `Command { std: "docker" "start" "-a" "044f892c132e248d6516828e7339b064c47ca3f2f411dd422efa5c3f03d39dde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "044f892c132e248d6516828e7339b064c47ca3f2f411dd422efa5c3f03d39dde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "044f892c132e248d6516828e7339b064c47ca3f2f411dd422efa5c3f03d39dde", kill_on_drop: false }` [INFO] [stdout] 044f892c132e248d6516828e7339b064c47ca3f2f411dd422efa5c3f03d39dde [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--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] 2ddaba4f2b25683880d3d8a549e600410ad853bc1ff9f3e1dc189678490193ac [INFO] running `Command { std: "docker" "start" "-a" "2ddaba4f2b25683880d3d8a549e600410ad853bc1ff9f3e1dc189678490193ac", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking bitflags v0.3.3 [INFO] [stderr] Compiling smbclient-sys v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking nix v0.4.3 [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | pub const SMBC_VFS_FEATURE_RDONLY: c_uint = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:118:42 [INFO] [stdout] | [INFO] [stdout] 118 | pub const SMBC_VFS_FEATURE_DFS: c_uint = (1 << 28); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:119:55 [INFO] [stdout] | [INFO] [stdout] 119 | pub const SMBC_VFS_FEATURE_CASE_INSENSITIVE: c_uint = (1 << 29); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:120:50 [INFO] [stdout] | [INFO] [stdout] 120 | pub const SMBC_VFS_FEATURE_NO_UNIXCIFS: c_uint = (1 << 30); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:181:45 [INFO] [stdout] | [INFO] [stdout] 181 | static SMB_CTX_FLAG_USE_KERBEROS : i32 = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:182:53 [INFO] [stdout] | [INFO] [stdout] 182 | static SMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS : i32 = (1 << 1); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:183:53 [INFO] [stdout] | [INFO] [stdout] 183 | static SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON : i32 = (1 << 2); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:184:44 [INFO] [stdout] | [INFO] [stdout] 184 | static SMB_CTX_FLAG_USE_CCACHE : i32 = (1 << 3); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:117:45 [INFO] [stdout] | [INFO] [stdout] 117 | pub const SMBC_VFS_FEATURE_RDONLY: c_uint = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:118:42 [INFO] [stdout] | [INFO] [stdout] 118 | pub const SMBC_VFS_FEATURE_DFS: c_uint = (1 << 28); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:119:55 [INFO] [stdout] | [INFO] [stdout] 119 | pub const SMBC_VFS_FEATURE_CASE_INSENSITIVE: c_uint = (1 << 29); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:120:50 [INFO] [stdout] | [INFO] [stdout] 120 | pub const SMBC_VFS_FEATURE_NO_UNIXCIFS: c_uint = (1 << 30); [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:181:45 [INFO] [stdout] | [INFO] [stdout] 181 | static SMB_CTX_FLAG_USE_KERBEROS : i32 = (1 << 0); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:182:53 [INFO] [stdout] | [INFO] [stdout] 182 | static SMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS : i32 = (1 << 1); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:183:53 [INFO] [stdout] | [INFO] [stdout] 183 | static SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON : i32 = (1 << 2); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:184:44 [INFO] [stdout] | [INFO] [stdout] 184 | static SMB_CTX_FLAG_USE_CCACHE : i32 = (1 << 3); [INFO] [stdout] | ^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `srv` [INFO] [stdout] --> examples/testread.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | extern "C" fn auth_data(srv: *const c_char, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_srv` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shr` [INFO] [stdout] --> examples/testread.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | shr: *const c_char, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_shr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wg` [INFO] [stdout] --> examples/testread.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | wg: *mut c_char, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_wg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wglen` [INFO] [stdout] --> examples/testread.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | wglen: c_int, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_wglen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unlen` [INFO] [stdout] --> examples/testread.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | unlen: c_int, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_unlen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pwlen` [INFO] [stdout] --> examples/testread.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | pwlen: c_int) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pwlen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/testread.rs:17:59 [INFO] [stdout] | [INFO] [stdout] 17 | strncpy(un, CString::new("vertexclique").unwrap().as_ptr(), 12); [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/testread.rs:18:51 [INFO] [stdout] | [INFO] [stdout] 18 | strncpy(pw, CString::new("1234").unwrap().as_ptr(), 4); [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: 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: static variable `authCallback` should have an upper case name [INFO] [stdout] --> examples/testread.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | pub static mut authCallback: smbc::smbc_get_auth_data_fn = Some(auth_data); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `AUTH_CALLBACK` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `srv` [INFO] [stdout] --> examples/testwrite.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | extern "C" fn auth_data(srv: *const c_char, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_srv` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shr` [INFO] [stdout] --> examples/testwrite.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | shr: *const c_char, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_shr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wg` [INFO] [stdout] --> examples/testwrite.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | wg: *mut c_char, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_wg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wglen` [INFO] [stdout] --> examples/testwrite.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | wglen: c_int, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_wglen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unlen` [INFO] [stdout] --> examples/testwrite.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | unlen: c_int, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_unlen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pwlen` [INFO] [stdout] --> examples/testwrite.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | pwlen: c_int) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pwlen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/testwrite.rs:17:59 [INFO] [stdout] | [INFO] [stdout] 17 | strncpy(un, CString::new("vertexclique").unwrap().as_ptr(), 12); [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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> examples/testwrite.rs:18:51 [INFO] [stdout] | [INFO] [stdout] 18 | strncpy(pw, CString::new("1234").unwrap().as_ptr(), 4); [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: 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: static variable `authCallback` should have an upper case name [INFO] [stdout] --> examples/testwrite.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | pub static mut authCallback: smbc::smbc_get_auth_data_fn = Some(auth_data); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `AUTH_CALLBACK` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.04s [INFO] running `Command { std: "docker" "inspect" "2ddaba4f2b25683880d3d8a549e600410ad853bc1ff9f3e1dc189678490193ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ddaba4f2b25683880d3d8a549e600410ad853bc1ff9f3e1dc189678490193ac", kill_on_drop: false }` [INFO] [stdout] 2ddaba4f2b25683880d3d8a549e600410ad853bc1ff9f3e1dc189678490193ac