[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] checking boatboatboatboat/testpacito against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboatboatboatboat%2Ftestpacito" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/boatboatboatboat/testpacito on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-6/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gag v0.1.10 [INFO] [stderr] Downloaded wait-timeout v0.2.0 [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-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a4e8cb3650cfe79efdbcbb231b8e64eb76c93ff478af664431bb2084ecdc4d7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4a4e8cb3650cfe79efdbcbb231b8e64eb76c93ff478af664431bb2084ecdc4d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a4e8cb3650cfe79efdbcbb231b8e64eb76c93ff478af664431bb2084ecdc4d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a4e8cb3650cfe79efdbcbb231b8e64eb76c93ff478af664431bb2084ecdc4d7", kill_on_drop: false }` [INFO] [stdout] 4a4e8cb3650cfe79efdbcbb231b8e64eb76c93ff478af664431bb2084ecdc4d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2ed7f85f92e36beff5a126b4becab17986f9f361ec84aa3048efd1d10f38027 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b2ed7f85f92e36beff5a126b4becab17986f9f361ec84aa3048efd1d10f38027", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking remove_dir_all v0.5.2 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Compiling testpacito v0.1.0 (/tmp/fixit) [INFO] [stderr] Compiling libc-stdhandle v0.1.0 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Migrating build.rs from 2018 edition to 2021 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking gag v0.1.10 [INFO] [stderr] Checking rusty-fork v0.2.2 [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/printf_tests.rs:165:2 [INFO] [stdout] | [INFO] [stdout] 165 | / macro_rules! csp { [INFO] [stdout] 166 | | ($x:expr) => { [INFO] [stdout] 167 | | { [INFO] [stdout] 168 | | let d = CString::new($x).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [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: 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] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `testpacito` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/printf_tests.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: argument never used [INFO] [stderr] --> src/printf_tests.rs:41:27 [INFO] [stderr] | [INFO] [stderr] 41 | panic!("{}", "{}", err_msg); [INFO] [stderr] | ---- ^^^^^^^ argument never used [INFO] [stderr] | | [INFO] [stderr] | formatting specifier missing [INFO] [stderr] ... [INFO] [stderr] 175 | / printf_tester! { [INFO] [stderr] 176 | | normal [INFO] [stderr] 177 | | basic_1, "hello, world!"; [INFO] [stderr] 178 | | basic_2, "wie dit leest is gek"; [INFO] [stderr] ... | [INFO] [stderr] 203 | | spec_pc_lj_0pad_width, "%-05%"; [INFO] [stderr] 204 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: argument never used [INFO] [stderr] --> src/printf_tests.rs:141:27 [INFO] [stderr] | [INFO] [stderr] 141 | panic!("{}", "{}", err_msg); [INFO] [stderr] | ---- ^^^^^^^ argument never used [INFO] [stderr] | | [INFO] [stderr] | formatting specifier missing [INFO] [stderr] ... [INFO] [stderr] 206 | / printf_tester! { [INFO] [stderr] 207 | | vararg [INFO] [stderr] 208 | | s_char, "hello,%cworld!", b'7'; [INFO] [stderr] 209 | | s_escape, "hello,%%world!", b'7'; [INFO] [stderr] ... | [INFO] [stderr] 294 | | none_vararg, "%", 123; [INFO] [stderr] 295 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: argument never used [INFO] [stderr] --> src/printf_tests.rs:158:27 [INFO] [stderr] | [INFO] [stderr] 158 | panic!("{}", "{}", err_msg); [INFO] [stderr] | ---- ^^^^^^^ argument never used [INFO] [stderr] | | [INFO] [stderr] | formatting specifier missing [INFO] [stderr] ... [INFO] [stderr] 206 | / printf_tester! { [INFO] [stderr] 207 | | vararg [INFO] [stderr] 208 | | s_char, "hello,%cworld!", b'7'; [INFO] [stderr] 209 | | s_escape, "hello,%%world!", b'7'; [INFO] [stderr] ... | [INFO] [stderr] 294 | | none_vararg, "%", 123; [INFO] [stderr] 295 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: argument never used [INFO] [stderr] --> src/printf_tests.rs:141:27 [INFO] [stderr] | [INFO] [stderr] 141 | panic!("{}", "{}", err_msg); [INFO] [stderr] | ---- ^^^^^^^ argument never used [INFO] [stderr] | | [INFO] [stderr] | formatting specifier missing [INFO] [stderr] ... [INFO] [stderr] 297 | / printf_tester! { [INFO] [stderr] 298 | | vararg [INFO] [stderr] 299 | | spec_s_basic1, "only wear designer, %s.", csp!("esketit"); [INFO] [stderr] 300 | | spec_s_basic2, "roken is %s.", csp!("dodelijk"); [INFO] [stderr] ... | [INFO] [stderr] 328 | | d_prec_fits_neg, "%.6d", -3 as isize; [INFO] [stderr] 329 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: argument never used [INFO] [stderr] --> src/printf_tests.rs:158:27 [INFO] [stderr] | [INFO] [stderr] 158 | panic!("{}", "{}", err_msg); [INFO] [stderr] | ---- ^^^^^^^ argument never used [INFO] [stderr] | | [INFO] [stderr] | formatting specifier missing [INFO] [stderr] ... [INFO] [stderr] 297 | / printf_tester! { [INFO] [stderr] 298 | | vararg [INFO] [stderr] 299 | | spec_s_basic1, "only wear designer, %s.", csp!("esketit"); [INFO] [stderr] 300 | | spec_s_basic2, "roken is %s.", csp!("dodelijk"); [INFO] [stderr] ... | [INFO] [stderr] 328 | | d_prec_fits_neg, "%.6d", -3 as isize; [INFO] [stderr] 329 | | } [INFO] [stderr] | |_____- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/printf_tests.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / printf_tester! { [INFO] [stdout] 176 | | normal [INFO] [stdout] 177 | | basic_1, "hello, world!"; [INFO] [stdout] 178 | | basic_2, "wie dit leest is gek"; [INFO] [stdout] ... | [INFO] [stdout] 203 | | spec_pc_lj_0pad_width, "%-05%"; [INFO] [stdout] 204 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn non-fmt-panics` implied by `--force-warn rust-2021-compatibility` [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] = note: this warning originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 41 | 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:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / printf_tester! { [INFO] [stdout] 176 | | normal [INFO] [stdout] 177 | | basic_1, "hello, world!"; [INFO] [stdout] 178 | | basic_2, "wie dit leest is gek"; [INFO] [stdout] ... | [INFO] [stdout] 203 | | spec_pc_lj_0pad_width, "%-05%"; [INFO] [stdout] 204 | | } [INFO] [stdout] | |_____- in this macro invocation [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] = note: this warning originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 55 | 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:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / printf_tester! { [INFO] [stdout] 176 | | normal [INFO] [stdout] 177 | | basic_1, "hello, world!"; [INFO] [stdout] 178 | | basic_2, "wie dit leest is gek"; [INFO] [stdout] ... | [INFO] [stdout] 203 | | spec_pc_lj_0pad_width, "%-05%"; [INFO] [stdout] 204 | | } [INFO] [stdout] | |_____- in this macro invocation [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] = note: this warning originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 41 | 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:141:15 [INFO] [stdout] | [INFO] [stdout] 141 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / printf_tester! { [INFO] [stdout] 207 | | vararg [INFO] [stdout] 208 | | s_char, "hello,%cworld!", b'7'; [INFO] [stdout] 209 | | s_escape, "hello,%%world!", b'7'; [INFO] [stdout] ... | [INFO] [stdout] 294 | | none_vararg, "%", 123; [INFO] [stdout] 295 | | } [INFO] [stdout] | |_____- in this macro invocation [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] = note: this warning originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 141 | 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:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / printf_tester! { [INFO] [stdout] 207 | | vararg [INFO] [stdout] 208 | | s_char, "hello,%cworld!", b'7'; [INFO] [stdout] 209 | | s_escape, "hello,%%world!", b'7'; [INFO] [stdout] ... | [INFO] [stdout] 294 | | none_vararg, "%", 123; [INFO] [stdout] 295 | | } [INFO] [stdout] | |_____- in this macro invocation [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] = note: this warning originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 158 | 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:141:15 [INFO] [stdout] | [INFO] [stdout] 141 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | / printf_tester! { [INFO] [stdout] 298 | | vararg [INFO] [stdout] 299 | | spec_s_basic1, "only wear designer, %s.", csp!("esketit"); [INFO] [stdout] 300 | | spec_s_basic2, "roken is %s.", csp!("dodelijk"); [INFO] [stdout] ... | [INFO] [stdout] 328 | | d_prec_fits_neg, "%.6d", -3 as isize; [INFO] [stdout] 329 | | } [INFO] [stdout] | |_____- in this macro invocation [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] = note: this warning originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 141 | 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:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | / printf_tester! { [INFO] [stdout] 298 | | vararg [INFO] [stdout] 299 | | spec_s_basic1, "only wear designer, %s.", csp!("esketit"); [INFO] [stdout] 300 | | spec_s_basic2, "roken is %s.", csp!("dodelijk"); [INFO] [stdout] ... | [INFO] [stdout] 328 | | d_prec_fits_neg, "%.6d", -3 as isize; [INFO] [stdout] 329 | | } [INFO] [stdout] | |_____- in this macro invocation [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] = note: this warning originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 158 | 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:424:11 [INFO] [stdout] | [INFO] [stdout] 424 | 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] 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] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.28s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling testpacito v0.1.0 (/tmp/fixit) [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 424 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 438 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 464 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 478 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 504 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 518 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/printf_tests.rs:165:2 [INFO] [stdout] | [INFO] [stdout] 165 | / macro_rules! csp { [INFO] [stdout] 166 | | ($x:expr) => { [INFO] [stdout] 167 | | { [INFO] [stdout] 168 | | let d = CString::new($x).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 171 | | } [INFO] [stdout] 172 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/printf_tests.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / printf_tester! { [INFO] [stdout] 176 | | normal [INFO] [stdout] 177 | | basic_1, "hello, world!"; [INFO] [stdout] 178 | | basic_2, "wie dit leest is gek"; [INFO] [stdout] ... | [INFO] [stdout] 203 | | spec_pc_lj_0pad_width, "%-05%"; [INFO] [stdout] 204 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 41 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/printf_tests.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | / printf_tester! { [INFO] [stdout] 176 | | normal [INFO] [stdout] 177 | | basic_1, "hello, world!"; [INFO] [stdout] 178 | | basic_2, "wie dit leest is gek"; [INFO] [stdout] ... | [INFO] [stdout] 203 | | spec_pc_lj_0pad_width, "%-05%"; [INFO] [stdout] 204 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 55 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/printf_tests.rs:141:15 [INFO] [stdout] | [INFO] [stdout] 141 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / printf_tester! { [INFO] [stdout] 207 | | vararg [INFO] [stdout] 208 | | s_char, "hello,%cworld!", b'7'; [INFO] [stdout] 209 | | s_escape, "hello,%%world!", b'7'; [INFO] [stdout] ... | [INFO] [stdout] 294 | | none_vararg, "%", 123; [INFO] [stdout] 295 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 141 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `testpacito` due to 7 previous errors; 1 warning emitted [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/printf_tests.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / printf_tester! { [INFO] [stdout] 207 | | vararg [INFO] [stdout] 208 | | s_char, "hello,%cworld!", b'7'; [INFO] [stdout] 209 | | s_escape, "hello,%%world!", b'7'; [INFO] [stdout] ... | [INFO] [stdout] 294 | | none_vararg, "%", 123; [INFO] [stdout] 295 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 158 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/printf_tests.rs:141:15 [INFO] [stdout] | [INFO] [stdout] 141 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | / printf_tester! { [INFO] [stdout] 298 | | vararg [INFO] [stdout] 299 | | spec_s_basic1, "only wear designer, %s.", csp!("esketit"); [INFO] [stdout] 300 | | spec_s_basic2, "roken is %s.", csp!("dodelijk"); [INFO] [stdout] ... | [INFO] [stdout] 328 | | d_prec_fits_neg, "%.6d", -3 as isize; [INFO] [stdout] 329 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 141 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/printf_tests.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 158 | panic!(err_msg); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | / printf_tester! { [INFO] [stdout] 298 | | vararg [INFO] [stdout] 299 | | spec_s_basic1, "only wear designer, %s.", csp!("esketit"); [INFO] [stdout] 300 | | spec_s_basic2, "roken is %s.", csp!("dodelijk"); [INFO] [stdout] ... | [INFO] [stdout] 328 | | d_prec_fits_neg, "%.6d", -3 as isize; [INFO] [stdout] 329 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `printf_tester` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 158 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 424 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 438 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 464 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 478 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 504 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be 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] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 518 | panic!("{}", err_msg); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b2ed7f85f92e36beff5a126b4becab17986f9f361ec84aa3048efd1d10f38027", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2ed7f85f92e36beff5a126b4becab17986f9f361ec84aa3048efd1d10f38027", kill_on_drop: false }` [INFO] [stdout] b2ed7f85f92e36beff5a126b4becab17986f9f361ec84aa3048efd1d10f38027