[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 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboatboatboatboat%2Ftestpacito" "/workspace/builds/worker-98/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-98/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/boatboatboatboat/testpacito on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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-98/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" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd0436df5979744ca6eb5f9126009429196681ccd644a263571dca2ad6c5870b [INFO] running `Command { std: "docker" "start" "-a" "fd0436df5979744ca6eb5f9126009429196681ccd644a263571dca2ad6c5870b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd0436df5979744ca6eb5f9126009429196681ccd644a263571dca2ad6c5870b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd0436df5979744ca6eb5f9126009429196681ccd644a263571dca2ad6c5870b", kill_on_drop: false }` [INFO] [stdout] fd0436df5979744ca6eb5f9126009429196681ccd644a263571dca2ad6c5870b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96c7e33917525d1b78f623fa177b14016cb49991567f89b732c050fc70922b25 [INFO] running `Command { std: "docker" "start" "-a" "96c7e33917525d1b78f623fa177b14016cb49991567f89b732c050fc70922b25", kill_on_drop: false }` [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 c2-chacha v0.2.3 [INFO] [stderr] Compiling libc-stdhandle v0.1.0 [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-d4ab6cf6abdb62d3.testpacito.e3e41c43-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-d4ab6cf6abdb62d3.testpacito.e3e41c43-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-d4ab6cf6abdb62d3.testpacito.e3e41c43-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-d4ab6cf6abdb62d3.testpacito.e3e41c43-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-d4ab6cf6abdb62d3.testpacito.e3e41c43-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-d4ab6cf6abdb62d3.testpacito.e3e41c43-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-d4ab6cf6abdb62d3.54fvz74h8p085e6a.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-d58114a9d90370f7/out" "-L" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lftprintf" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/liblibc_stdhandle-9a285d59639053e4.rlib" "/opt/rustwide/target/debug/deps/libgag-cd44afa88edaf696.rlib" "/opt/rustwide/target/debug/deps/librusty_fork-1af1d0b2243fb1c3.rlib" "/opt/rustwide/target/debug/deps/libwait_timeout-c1aa31a1b76633f2.rlib" "/opt/rustwide/target/debug/deps/libtempfile-fd4313fbd2f0c8c9.rlib" "/opt/rustwide/target/debug/deps/librand-1bda3fe6d620197b.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-b8def8a74628f2bf.rlib" "/opt/rustwide/target/debug/deps/libc2_chacha-b30b784f12c2cdea.rlib" "/opt/rustwide/target/debug/deps/libppv_lite86-413d64d3e3abcfaa.rlib" "/opt/rustwide/target/debug/deps/librand_core-1d3c83e14b1668d4.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-6595c691ec16b3c7.rlib" "/opt/rustwide/target/debug/deps/liblibc-714a54a1fab28a1b.rlib" "/opt/rustwide/target/debug/deps/libremove_dir_all-9bf6c14e685e53a6.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-3e93dce105ba1ecd.rlib" "/opt/rustwide/target/debug/deps/libquick_error-51b41fc19f31c3a4.rlib" "/opt/rustwide/target/debug/deps/libfnv-80ed2aac042641d7.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-a46a068050a12a4b.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-1df56095db9453cb.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-9062de483386e50b.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-b988ab269ff13602.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-1bc822d886d4f7bd.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-963eca8df4c224a6.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-d805b480c9102e58.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-06dfdbc22b935051.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-d7523a4d118e6572.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-5d7898c7fac3a07d.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-8c2bdbab4845bf3d.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-d578639df0547b30.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-58bbb7b1efa3a5e2.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-4c9b082d197c16f8.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-70f9ed6d8e7a5ce6.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-8c0a241d0360fa53.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-bad7ed93fdd31371.rlib" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-98b4d121af2b7335.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-1d9f7e5920635d15.rlib" "-Wl,-Bdynamic" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/1.59.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/testpacito-d4ab6cf6abdb62d3" "-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" "96c7e33917525d1b78f623fa177b14016cb49991567f89b732c050fc70922b25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96c7e33917525d1b78f623fa177b14016cb49991567f89b732c050fc70922b25", kill_on_drop: false }` [INFO] [stdout] 96c7e33917525d1b78f623fa177b14016cb49991567f89b732c050fc70922b25