[INFO] fetching crate linenoise-rust 0.2.1... [INFO] checking linenoise-rust-0.2.1 against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] extracting crate linenoise-rust 0.2.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate linenoise-rust 0.2.1 [INFO] finished tweaking crates.io crate linenoise-rust 0.2.1 [INFO] tweaked toml for crates.io crate linenoise-rust 0.2.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate linenoise-rust 0.2.1 on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 2 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: file `/workspace/builds/worker-3-tc1/source/examples/linenoise_example.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `linenoise_example` [INFO] [stderr] * `example` target `linenoise_example` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e4d3cbca2c08e2a65d1cbf6e6a3f2f6dae278b733537405261a762c7c5a8dd68 [INFO] running `Command { std: "docker" "start" "-a" "e4d3cbca2c08e2a65d1cbf6e6a3f2f6dae278b733537405261a762c7c5a8dd68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e4d3cbca2c08e2a65d1cbf6e6a3f2f6dae278b733537405261a762c7c5a8dd68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4d3cbca2c08e2a65d1cbf6e6a3f2f6dae278b733537405261a762c7c5a8dd68", kill_on_drop: false }` [INFO] [stdout] e4d3cbca2c08e2a65d1cbf6e6a3f2f6dae278b733537405261a762c7c5a8dd68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 077c7f08d1f0f2fbefcc7424e0bf9ee54a94b0ba59d210660c6f0df76fa69298 [INFO] running `Command { std: "docker" "start" "-a" "077c7f08d1f0f2fbefcc7424e0bf9ee54a94b0ba59d210660c6f0df76fa69298", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: file `/opt/rustwide/workdir/examples/linenoise_example.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `linenoise_example` [INFO] [stderr] * `example` target `linenoise_example` [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling linenoise-rust v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated struct `gcc::Build`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | gcc::Build::new() [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `gcc::Build::new`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stdout] --> build.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | gcc::Build::new() [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp: In function 'linenoise_ng::ConversionResult linenoise_ng::ConvertUTF16toUTF8(const UTF16**, const UTF16*, UTF8**, UTF8*, ConversionFlags)': [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:271:72: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 271 | case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:272:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 272 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:272:72: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 272 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:273:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 273 | case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:273:72: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 273 | case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:274:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 274 | case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp: In function 'linenoise_ng::Boolean linenoise_ng::isLegalUTF8(const UTF8*, int)': [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:302:13: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 302 | case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:303:5: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 303 | case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:303:13: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 303 | case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:304:5: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 304 | case 2: if ((a = (*--srcptr)) > 0xBF) return false; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:306:9: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 306 | switch (*source) { [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:315:5: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 315 | case 1: if (*source >= 0x80 && *source < 0xC2) return false; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp: In function 'linenoise_ng::ConversionResult linenoise_ng::ConvertUTF8toUTF16(const UTF8**, const UTF8*, UTF16**, UTF16*, ConversionFlags)': [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:358:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 358 | case 5: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */ [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:359:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 359 | case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */ [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:359:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 359 | case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */ [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:360:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 360 | case 3: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:360:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 360 | case 3: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:361:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 361 | case 2: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:361:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 361 | case 2: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:362:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 362 | case 1: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:362:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 362 | case 1: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:363:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 363 | case 0: ch += *source++; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp: In function 'linenoise_ng::ConversionResult linenoise_ng::ConvertUTF32toUTF8(const UTF32**, const UTF32*, UTF8**, UTF8*, ConversionFlags)': [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:449:72: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 449 | case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:450:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 450 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:450:72: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 450 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:451:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 451 | case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:451:72: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 451 | case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:452:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 452 | case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]); [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp: In function 'linenoise_ng::ConversionResult linenoise_ng::ConvertUTF8toUTF32(const UTF8**, const UTF8*, UTF32**, UTF32*, ConversionFlags)': [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:484:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 484 | case 5: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:485:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 485 | case 4: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:485:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 485 | case 4: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:486:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 486 | case 3: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:486:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 486 | case 3: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:487:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 487 | case 2: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:487:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 487 | case 2: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:488:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 488 | case 1: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:488:41: warning: this statement may fall through [-Wimplicit-fallthrough=] [INFO] [stderr] warning: linenoise-rust@0.2.1: 488 | case 1: ch += *source++; ch <<= 6; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ~~~^~~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:489:13: note: here [INFO] [stderr] warning: linenoise-rust@0.2.1: 489 | case 0: ch += *source++; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~ [INFO] [stderr] warning: linenoise-rust@0.2.1: native/linenoise.cpp:131:23: warning: identifier 'char8_t' is a keyword in C++20 [-Wc++20-compat] [INFO] [stderr] warning: linenoise-rust@0.2.1: 131 | typedef unsigned char char8_t; [INFO] [stderr] warning: linenoise-rust@0.2.1: | ^~~~~~~ [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/ffi.rs:976:40 [INFO] [stdout] | [INFO] [stdout] 976 | pub type linenoiseCompletionCallback = extern fn(*mut libc::c_char, *mut Struct_linenoiseCompletions); [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/ffi.rs:976:40 [INFO] [stdout] | [INFO] [stdout] 976 | pub type linenoiseCompletionCallback = extern fn(*mut libc::c_char, *mut Struct_linenoiseCompletions); [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/lib.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | let cs = CString::new(line).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/lib.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/lib.rs:119:45 [INFO] [stdout] | [INFO] [stdout] 119 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:179:34 [INFO] [stdout] | [INFO] [stdout] 179 | for external_callback in USER_COMPLETION.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/lib.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | let cs = CString::new(line).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/lib.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> src/lib.rs:119:45 [INFO] [stdout] | [INFO] [stdout] 119 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:179:34 [INFO] [stdout] | [INFO] [stdout] 179 | for external_callback in USER_COMPLETION.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.33s [INFO] running `Command { std: "docker" "inspect" "077c7f08d1f0f2fbefcc7424e0bf9ee54a94b0ba59d210660c6f0df76fa69298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "077c7f08d1f0f2fbefcc7424e0bf9ee54a94b0ba59d210660c6f0df76fa69298", kill_on_drop: false }` [INFO] [stdout] 077c7f08d1f0f2fbefcc7424e0bf9ee54a94b0ba59d210660c6f0df76fa69298