[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.60.0 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 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.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-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" "+1.60.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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gag v0.1.10 [INFO] [stderr] Downloaded rusty-fork v0.2.2 [INFO] [stderr] Downloaded libc-stdhandle v0.1.0 [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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64d81e782e514442d7e7187cb382d858e16c22927da000dc9aebaa42fdfe98bd [INFO] running `Command { std: "docker" "start" "-a" "64d81e782e514442d7e7187cb382d858e16c22927da000dc9aebaa42fdfe98bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64d81e782e514442d7e7187cb382d858e16c22927da000dc9aebaa42fdfe98bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64d81e782e514442d7e7187cb382d858e16c22927da000dc9aebaa42fdfe98bd", kill_on_drop: false }` [INFO] [stdout] 64d81e782e514442d7e7187cb382d858e16c22927da000dc9aebaa42fdfe98bd [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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 383a48227a74b3f8a6a02365f74bed06f51ada9b815db587488e0c57e8a9aede [INFO] running `Command { std: "docker" "start" "-a" "383a48227a74b3f8a6a02365f74bed06f51ada9b815db587488e0c57e8a9aede", 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 cc v1.0.47 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [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 gag v0.1.10 [INFO] [stderr] Compiling rusty-fork v0.2.2 [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-4073c18a20c57a07.testpacito.6550ae6d-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-4073c18a20c57a07.testpacito.6550ae6d-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-4073c18a20c57a07.testpacito.6550ae6d-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-4073c18a20c57a07.testpacito.6550ae6d-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-4073c18a20c57a07.testpacito.6550ae6d-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-4073c18a20c57a07.testpacito.6550ae6d-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/testpacito-4073c18a20c57a07.2m695nb65h2bbym6.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-e227c4486d514fa1/out" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lftprintf" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/liblibc_stdhandle-741fbea4316ccb36.rlib" "/opt/rustwide/target/debug/deps/libgag-92d3f73979cf6f17.rlib" "/opt/rustwide/target/debug/deps/librusty_fork-ed3e2b010a8a5024.rlib" "/opt/rustwide/target/debug/deps/libwait_timeout-e57326eaddf4db87.rlib" "/opt/rustwide/target/debug/deps/libtempfile-730117e6f61ff6d7.rlib" "/opt/rustwide/target/debug/deps/librand-a535120323cc8cbd.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-8c6cb13bf89f4cfc.rlib" "/opt/rustwide/target/debug/deps/libc2_chacha-9573a9893e75f899.rlib" "/opt/rustwide/target/debug/deps/libppv_lite86-8f09ddeb985861e3.rlib" "/opt/rustwide/target/debug/deps/librand_core-c1b82caecf911150.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-3850647f947373c5.rlib" "/opt/rustwide/target/debug/deps/liblibc-6f8015d859df6a0e.rlib" "/opt/rustwide/target/debug/deps/libremove_dir_all-11cea57ce223f941.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-77abc38cc38d84d4.rlib" "/opt/rustwide/target/debug/deps/libquick_error-10f197e702ac1341.rlib" "/opt/rustwide/target/debug/deps/libfnv-75a549072e1c1e97.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8d61b92a0a02f53a.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fc45202bb435016b.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f2400674c7513725.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-605c3a7d1a5d300d.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3d4fb4efa907e4e8.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-65207f030ab23308.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-76ca199cb0186109.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1e3e01ed4f561dc1.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd8dddcba7c13fee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-00b13d31c3420656.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e4c8460b81557bd5.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-600d46e5f0005455.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e4a08a2585b62d37.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-fbc21ec567cb9dc7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-10b3fa8e49bd978f.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-64625b73694ffce7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-fb6b78ac543a58ee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1d1f2d1bec6f51b8.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-acf5ff6e9595d982.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.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/testpacito-4073c18a20c57a07" "-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" "383a48227a74b3f8a6a02365f74bed06f51ada9b815db587488e0c57e8a9aede", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "383a48227a74b3f8a6a02365f74bed06f51ada9b815db587488e0c57e8a9aede", kill_on_drop: false }` [INFO] [stdout] 383a48227a74b3f8a6a02365f74bed06f51ada9b815db587488e0c57e8a9aede