[INFO] fetching crate smbclient-sys 0.1.0... [INFO] checking smbclient-sys-0.1.0 against master#05eac57ef6668c9d181b65aceb96b1e7881f60be for pr-127656 [INFO] extracting crate smbclient-sys 0.1.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate smbclient-sys 0.1.0 on toolchain 05eac57ef6668c9d181b65aceb96b1e7881f60be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+05eac57ef6668c9d181b65aceb96b1e7881f60be" "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-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+05eac57ef6668c9d181b65aceb96b1e7881f60be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] [stderr] Adding bitflags v0.3.3 (latest: v2.6.0) [INFO] [stderr] Adding libc v0.1.12 (latest: v0.2.155) [INFO] [stderr] Adding nix v0.4.3 (latest: v0.29.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+05eac57ef6668c9d181b65aceb96b1e7881f60be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [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-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+05eac57ef6668c9d181b65aceb96b1e7881f60be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d53980e3f7accc04996f2e9453116dd2a76c3d9060fd30718ff59082863e2f6a [INFO] running `Command { std: "docker" "start" "-a" "d53980e3f7accc04996f2e9453116dd2a76c3d9060fd30718ff59082863e2f6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d53980e3f7accc04996f2e9453116dd2a76c3d9060fd30718ff59082863e2f6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d53980e3f7accc04996f2e9453116dd2a76c3d9060fd30718ff59082863e2f6a", kill_on_drop: false }` [INFO] [stdout] d53980e3f7accc04996f2e9453116dd2a76c3d9060fd30718ff59082863e2f6a [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" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+05eac57ef6668c9d181b65aceb96b1e7881f60be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3a0daa9ea8cd7bd89899292ff205f48aa2f509c3e510123a9085b7ced18a6a2 [INFO] running `Command { std: "docker" "start" "-a" "f3a0daa9ea8cd7bd89899292ff205f48aa2f509c3e510123a9085b7ced18a6a2", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling smbclient-sys v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking bitflags v0.3.3 [INFO] [stderr] Checking libc v0.1.12 [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - pub const SMBC_VFS_FEATURE_RDONLY: c_uint = (1 << 0); [INFO] [stdout] 117 + pub const SMBC_VFS_FEATURE_RDONLY: c_uint = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - pub const SMBC_VFS_FEATURE_DFS: c_uint = (1 << 28); [INFO] [stdout] 118 + pub const SMBC_VFS_FEATURE_DFS: c_uint = 1 << 28; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - pub const SMBC_VFS_FEATURE_CASE_INSENSITIVE: c_uint = (1 << 29); [INFO] [stdout] 119 + pub const SMBC_VFS_FEATURE_CASE_INSENSITIVE: c_uint = 1 << 29; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 120 - pub const SMBC_VFS_FEATURE_NO_UNIXCIFS: c_uint = (1 << 30); [INFO] [stdout] 120 + pub const SMBC_VFS_FEATURE_NO_UNIXCIFS: c_uint = 1 << 30; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - static SMB_CTX_FLAG_USE_KERBEROS : i32 = (1 << 0); [INFO] [stdout] 181 + static SMB_CTX_FLAG_USE_KERBEROS : i32 = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - static SMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS : i32 = (1 << 1); [INFO] [stdout] 182 + static SMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS : i32 = 1 << 1; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - static SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON : i32 = (1 << 2); [INFO] [stdout] 183 + static SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON : i32 = 1 << 2; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - static SMB_CTX_FLAG_USE_CCACHE : i32 = (1 << 3); [INFO] [stdout] 184 + static SMB_CTX_FLAG_USE_CCACHE : i32 = 1 << 3; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - pub const SMBC_VFS_FEATURE_RDONLY: c_uint = (1 << 0); [INFO] [stdout] 117 + pub const SMBC_VFS_FEATURE_RDONLY: c_uint = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - pub const SMBC_VFS_FEATURE_DFS: c_uint = (1 << 28); [INFO] [stdout] 118 + pub const SMBC_VFS_FEATURE_DFS: c_uint = 1 << 28; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - pub const SMBC_VFS_FEATURE_CASE_INSENSITIVE: c_uint = (1 << 29); [INFO] [stdout] 119 + pub const SMBC_VFS_FEATURE_CASE_INSENSITIVE: c_uint = 1 << 29; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 120 - pub const SMBC_VFS_FEATURE_NO_UNIXCIFS: c_uint = (1 << 30); [INFO] [stdout] 120 + pub const SMBC_VFS_FEATURE_NO_UNIXCIFS: c_uint = 1 << 30; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - static SMB_CTX_FLAG_USE_KERBEROS : i32 = (1 << 0); [INFO] [stdout] 181 + static SMB_CTX_FLAG_USE_KERBEROS : i32 = 1 << 0; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 182 - static SMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS : i32 = (1 << 1); [INFO] [stdout] 182 + static SMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS : i32 = 1 << 1; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - static SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON : i32 = (1 << 2); [INFO] [stdout] 183 + static SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON : i32 = 1 << 2; [INFO] [stdout] | [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] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - static SMB_CTX_FLAG_USE_CCACHE : i32 = (1 << 3); [INFO] [stdout] 184 + static SMB_CTX_FLAG_USE_CCACHE : i32 = 1 << 3; [INFO] [stdout] | [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/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: `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: `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: `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: 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: 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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [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: 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: 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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.66s [INFO] running `Command { std: "docker" "inspect" "f3a0daa9ea8cd7bd89899292ff205f48aa2f509c3e510123a9085b7ced18a6a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3a0daa9ea8cd7bd89899292ff205f48aa2f509c3e510123a9085b7ced18a6a2", kill_on_drop: false }` [INFO] [stdout] f3a0daa9ea8cd7bd89899292ff205f48aa2f509c3e510123a9085b7ced18a6a2 [INFO] checking smbclient-sys-0.1.0 against try#0c9c19b42881b7ee3d3f268d2369726c7f8dddfd for pr-127656 [INFO] extracting crate smbclient-sys 0.1.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate smbclient-sys 0.1.0 on toolchain 0c9c19b42881b7ee3d3f268d2369726c7f8dddfd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c9c19b42881b7ee3d3f268d2369726c7f8dddfd" "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-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c9c19b42881b7ee3d3f268d2369726c7f8dddfd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] [stderr] Adding bitflags v0.3.3 (latest: v2.6.0) [INFO] [stderr] Adding libc v0.1.12 (latest: v0.2.155) [INFO] [stderr] Adding nix v0.4.3 (latest: v0.29.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c9c19b42881b7ee3d3f268d2369726c7f8dddfd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+0c9c19b42881b7ee3d3f268d2369726c7f8dddfd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b7b99c7fd4f6ec6c8132ee58fe51fe5443cb65a5930125b47f94e5957a5f4fc [INFO] running `Command { std: "docker" "start" "-a" "5b7b99c7fd4f6ec6c8132ee58fe51fe5443cb65a5930125b47f94e5957a5f4fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b7b99c7fd4f6ec6c8132ee58fe51fe5443cb65a5930125b47f94e5957a5f4fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b7b99c7fd4f6ec6c8132ee58fe51fe5443cb65a5930125b47f94e5957a5f4fc", kill_on_drop: false }` [INFO] [stdout] 5b7b99c7fd4f6ec6c8132ee58fe51fe5443cb65a5930125b47f94e5957a5f4fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+0c9c19b42881b7ee3d3f268d2369726c7f8dddfd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68029e26d960345a43506d4d85f4f2a9726e35f3f9b2826fa3f38c38c96240fa [INFO] running `Command { std: "docker" "start" "-a" "68029e26d960345a43506d4d85f4f2a9726e35f3f9b2826fa3f38c38c96240fa", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling smbclient-sys v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking bitflags v0.3.3 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking nix v0.4.3 [INFO] [stdout] error[E0365]: extern crate `libc` is private and cannot be re-exported [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nix-0.4.3/src/sys/ioctl/mod.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub use ::libc as libc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider making the `extern crate` item publicly accessible [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/nix-0.4.3/src/lib.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub extern crate libc; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0365`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nix` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "68029e26d960345a43506d4d85f4f2a9726e35f3f9b2826fa3f38c38c96240fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68029e26d960345a43506d4d85f4f2a9726e35f3f9b2826fa3f38c38c96240fa", kill_on_drop: false }` [INFO] [stdout] 68029e26d960345a43506d4d85f4f2a9726e35f3f9b2826fa3f38c38c96240fa