[INFO] cloning repository https://github.com/boatboatboatboat/testpacito [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/boatboatboatboat/testpacito" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboatboatboatboat%2Ftestpacito", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboatboatboatboat%2Ftestpacito'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a60eb4a7daa491b952f23c80da8575bb97ce941b [INFO] testing boatboatboatboat/testpacito against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboatboatboatboat%2Ftestpacito" "/workspace/builds/worker-99/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-99/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/boatboatboatboat/testpacito on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/boatboatboatboat/testpacito [INFO] finished tweaking git repo https://github.com/boatboatboatboat/testpacito [INFO] tweaked toml for git repo https://github.com/boatboatboatboat/testpacito written to /workspace/builds/worker-99/source/Cargo.toml [INFO] crate git repo https://github.com/boatboatboatboat/testpacito already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--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-99/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81042b4fd70e5e09a7a41a088554ffa1498c396aa69f3ff4316af5f2e2358970 [INFO] running `Command { std: "docker" "start" "-a" "81042b4fd70e5e09a7a41a088554ffa1498c396aa69f3ff4316af5f2e2358970", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81042b4fd70e5e09a7a41a088554ffa1498c396aa69f3ff4316af5f2e2358970", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81042b4fd70e5e09a7a41a088554ffa1498c396aa69f3ff4316af5f2e2358970", kill_on_drop: false }` [INFO] [stdout] 81042b4fd70e5e09a7a41a088554ffa1498c396aa69f3ff4316af5f2e2358970 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-99/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82ee074a04b365be7931e5cacd937bbe890b5d5ce01352f2c838d4a63d0405c5 [INFO] running `Command { std: "docker" "start" "-a" "82ee074a04b365be7931e5cacd937bbe890b5d5ce01352f2c838d4a63d0405c5", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling cc v1.0.47 [INFO] [stderr] Compiling testpacito v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling libc-stdhandle v0.1.0 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling rand v0.7.2 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling rusty-fork v0.2.2 [INFO] [stderr] Compiling gag v0.1.10 [INFO] [stdout] warning: unused macro definition: `csp` [INFO] [stdout] --> src/printf_tests.rs:165:15 [INFO] [stdout] | [INFO] [stdout] 165 | macro_rules! csp { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ft_printf` [INFO] [stdout] --> src/printf_tests.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 9 | fn ft_printf(format: *const c_char, ...) -> i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `USABLE_STRINGS` [INFO] [stdout] --> src/printf_tests.rs:331:2 [INFO] [stdout] | [INFO] [stdout] 331 | / const USABLE_STRINGS: [&str; 18] = [ [INFO] [stdout] 332 | | "hello world", [INFO] [stdout] 333 | | "despacito", [INFO] [stdout] 334 | | "esketit", [INFO] [stdout] ... | [INFO] [stdout] 349 | | "oof" [INFO] [stdout] 350 | | ]; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `FLAGS` [INFO] [stdout] --> src/printf_tests.rs:376:2 [INFO] [stdout] | [INFO] [stdout] 376 | const FLAGS: u32 = 12; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ALL_THE_FLAGS` [INFO] [stdout] --> src/printf_tests.rs:378:2 [INFO] [stdout] | [INFO] [stdout] 378 | / const ALL_THE_FLAGS: [char; 12] = [ [INFO] [stdout] 379 | | '-', [INFO] [stdout] 380 | | '0', [INFO] [stdout] 381 | | '.', [INFO] [stdout] ... | [INFO] [stdout] 391 | | '9', [INFO] [stdout] 392 | | ]; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `isdigit` [INFO] [stdout] --> src/printf_tests.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | fn isdigit(c: char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `single_string_tester` [INFO] [stdout] --> src/printf_tests.rs:400:5 [INFO] [stdout] | [INFO] [stdout] 400 | fn single_string_tester(format: String, arg: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `numerical_tester` [INFO] [stdout] --> src/printf_tests.rs:441:5 [INFO] [stdout] | [INFO] [stdout] 441 | fn numerical_tester(format: String, arg: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `standalone_tester` [INFO] [stdout] --> src/printf_tests.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 481 | fn standalone_tester(format: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_format_string` [INFO] [stdout] --> src/printf_tests.rs:522:5 [INFO] [stdout] | [INFO] [stdout] 522 | fn generate_format_string(specifier: char, n: u8) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_s_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:542:5 [INFO] [stdout] | [INFO] [stdout] 542 | fn spec_s_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_d_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:555:5 [INFO] [stdout] | [INFO] [stdout] 555 | fn spec_d_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_c_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:568:5 [INFO] [stdout] | [INFO] [stdout] 568 | fn spec_c_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_p_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:581:5 [INFO] [stdout] | [INFO] [stdout] 581 | fn spec_p_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_i_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:594:5 [INFO] [stdout] | [INFO] [stdout] 594 | fn spec_i_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_u_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:607:5 [INFO] [stdout] | [INFO] [stdout] 607 | fn spec_u_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_xlw_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:620:5 [INFO] [stdout] | [INFO] [stdout] 620 | fn spec_xlw_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_xup_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:633:5 [INFO] [stdout] | [INFO] [stdout] 633 | fn spec_xup_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `spec_percent_fuzzer_standalone` [INFO] [stdout] --> src/printf_tests.rs:646:5 [INFO] [stdout] | [INFO] [stdout] 646 | fn spec_percent_fuzzer_standalone() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/printf_tests.rs:424:11 [INFO] [stdout] | [INFO] [stdout] 424 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 424 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/printf_tests.rs:438:11 [INFO] [stdout] | [INFO] [stdout] 438 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 438 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/printf_tests.rs:464:11 [INFO] [stdout] | [INFO] [stdout] 464 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 464 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/printf_tests.rs:478:11 [INFO] [stdout] | [INFO] [stdout] 478 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 478 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/printf_tests.rs:504:11 [INFO] [stdout] | [INFO] [stdout] 504 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 504 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/printf_tests.rs:518:11 [INFO] [stdout] | [INFO] [stdout] 518 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 518 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/printf_tests.rs:543:73 [INFO] [stdout] | [INFO] [stdout] 543 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/printf_tests.rs:556:73 [INFO] [stdout] | [INFO] [stdout] 556 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: 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] --> src/printf_tests.rs:569:73 [INFO] [stdout] | [INFO] [stdout] 569 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: 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] --> src/printf_tests.rs:582:73 [INFO] [stdout] | [INFO] [stdout] 582 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: 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] --> src/printf_tests.rs:595:73 [INFO] [stdout] | [INFO] [stdout] 595 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: 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] --> src/printf_tests.rs:608:73 [INFO] [stdout] | [INFO] [stdout] 608 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: 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] --> src/printf_tests.rs:621:73 [INFO] [stdout] | [INFO] [stdout] 621 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: 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] --> src/printf_tests.rs:634:73 [INFO] [stdout] | [INFO] [stdout] 634 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: 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] --> src/printf_tests.rs:647:73 [INFO] [stdout] | [INFO] [stdout] 647 | unsafe { libc::setlocale(libc::LC_ALL, CString::new("en_US").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: 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] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/deps/testpacito-6f9a912f2f95b221.testpacito.958da3b8-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-6f9a912f2f95b221.testpacito.958da3b8-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-6f9a912f2f95b221.testpacito.958da3b8-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-6f9a912f2f95b221.testpacito.958da3b8-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-6f9a912f2f95b221.testpacito.958da3b8-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-6f9a912f2f95b221.testpacito.958da3b8-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-6f9a912f2f95b221.2vibl0e9e1hwc8ht.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/Users/dpattij/projects/GITHUB_ft_printf" "-L" "/opt/rustwide/target/debug/build/libc-stdhandle-0f8ab952b823760b/out" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lftprintf" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/liblibc_stdhandle-bcd0427ae66fab00.rlib" "/opt/rustwide/target/debug/deps/libgag-a4b655c775aa3dba.rlib" "/opt/rustwide/target/debug/deps/librusty_fork-4b96cd82d6a1b810.rlib" "/opt/rustwide/target/debug/deps/libwait_timeout-e7ec91f6f8442b5e.rlib" "/opt/rustwide/target/debug/deps/libtempfile-b8e4d9899957031f.rlib" "/opt/rustwide/target/debug/deps/librand-cf890fd2369d57c8.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-6f35d9bb5700847c.rlib" "/opt/rustwide/target/debug/deps/libc2_chacha-5ba93bd5a4ea4e3f.rlib" "/opt/rustwide/target/debug/deps/libppv_lite86-6f374a1e839b3a4a.rlib" "/opt/rustwide/target/debug/deps/librand_core-9c6a4138ec91a008.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-4d6297a74e2770a1.rlib" "/opt/rustwide/target/debug/deps/liblibc-580d1aa2eb43e3f9.rlib" "/opt/rustwide/target/debug/deps/libremove_dir_all-ef9fbfbf78dc3912.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-b22544e46cbb7baa.rlib" "/opt/rustwide/target/debug/deps/libquick_error-bbca79884f64fc4c.rlib" "/opt/rustwide/target/debug/deps/libfnv-3b027f9af76441c8.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ff9290e971253a38.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-5534b29ea7b2d8f5.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-8bfbb13072fc2761.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-d6d1fa92fa620f17.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-7cfd201521727d95.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-0e8010e8fce8e5a7.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-19093fec3c6dd913.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-89c4cbe9256c1890.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-73e4507673363945.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-3fe98c0f46f27964.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-a76787f08d45e37d.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-8cea480e62c5b261.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-1fb939608cd05a1c.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-842e67e3ab562f66.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0c1c8fec3b1a54cc.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-689faa634b72af17.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-6c2c561a8181be5e.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-88c4d85fe493b0a6.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-f5394bdb1df5df01.rlib" "-Wl,-Bdynamic" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/testpacito-6f9a912f2f95b221" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lftprintf [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `testpacito` due to 2 previous errors; 34 warnings emitted [INFO] running `Command { std: "docker" "inspect" "82ee074a04b365be7931e5cacd937bbe890b5d5ce01352f2c838d4a63d0405c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82ee074a04b365be7931e5cacd937bbe890b5d5ce01352f2c838d4a63d0405c5", kill_on_drop: false }` [INFO] [stdout] 82ee074a04b365be7931e5cacd937bbe890b5d5ce01352f2c838d4a63d0405c5