[INFO] fetching crate smbclient-sys 0.1.0... [INFO] checking smbclient-sys-0.1.0 against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] extracting crate smbclient-sys 0.1.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate smbclient-sys 0.1.0 on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "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-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93f7b410a7d0ad96bf15d0d17ba666964e8e0aa9d0ac0d326d6e90841d546246 [INFO] running `Command { std: "docker" "start" "-a" "93f7b410a7d0ad96bf15d0d17ba666964e8e0aa9d0ac0d326d6e90841d546246", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93f7b410a7d0ad96bf15d0d17ba666964e8e0aa9d0ac0d326d6e90841d546246", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93f7b410a7d0ad96bf15d0d17ba666964e8e0aa9d0ac0d326d6e90841d546246", kill_on_drop: false }` [INFO] [stdout] 93f7b410a7d0ad96bf15d0d17ba666964e8e0aa9d0ac0d326d6e90841d546246 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9380b1e58f9e4c52575c4ee99fb386c149d6d166b734b19cb8b400f91198d3a9 [INFO] running `Command { std: "docker" "start" "-a" "9380b1e58f9e4c52575c4ee99fb386c149d6d166b734b19cb8b400f91198d3a9", kill_on_drop: false }` [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking nix v0.4.3 [INFO] [stderr] Compiling smbclient-sys v0.1.0 (/opt/rustwide/workdir) [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 2.33s [INFO] running `Command { std: "docker" "inspect" "9380b1e58f9e4c52575c4ee99fb386c149d6d166b734b19cb8b400f91198d3a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9380b1e58f9e4c52575c4ee99fb386c149d6d166b734b19cb8b400f91198d3a9", kill_on_drop: false }` [INFO] [stdout] 9380b1e58f9e4c52575c4ee99fb386c149d6d166b734b19cb8b400f91198d3a9