[INFO] fetching crate linenoise-rust 0.2.1... [INFO] checking linenoise-rust-0.2.1 against master#8e37e151835d96d6a7415e93e6876561485a3354 for pr-134218 [INFO] extracting crate linenoise-rust 0.2.1 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate linenoise-rust 0.2.1 on toolchain 8e37e151835d96d6a7415e93e6876561485a3354 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8e37e151835d96d6a7415e93e6876561485a3354" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8e37e151835d96d6a7415e93e6876561485a3354" "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" "+8e37e151835d96d6a7415e93e6876561485a3354" "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-1-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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+8e37e151835d96d6a7415e93e6876561485a3354" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd3905777040947fa0e9c70168e6ab93b6f3ac7e4ff968fce3bdbe81cfec944d [INFO] running `Command { std: "docker" "start" "-a" "fd3905777040947fa0e9c70168e6ab93b6f3ac7e4ff968fce3bdbe81cfec944d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd3905777040947fa0e9c70168e6ab93b6f3ac7e4ff968fce3bdbe81cfec944d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd3905777040947fa0e9c70168e6ab93b6f3ac7e4ff968fce3bdbe81cfec944d", kill_on_drop: false }` [INFO] [stdout] fd3905777040947fa0e9c70168e6ab93b6f3ac7e4ff968fce3bdbe81cfec944d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+8e37e151835d96d6a7415e93e6876561485a3354" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9738df9bee5441cac8bb6c7e39cf0ff0dc4ff97104bed2726a6ec557bf59eb5 [INFO] running `Command { std: "docker" "start" "-a" "e9738df9bee5441cac8bb6c7e39cf0ff0dc4ff97104bed2726a6ec557bf59eb5", 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 libc v0.2.168 [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*, linenoise_ng::UTF8**, linenoise_ng::UTF8*, linenoise_ng::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*, linenoise_ng::UTF16**, linenoise_ng::UTF16*, linenoise_ng::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*, linenoise_ng::UTF8**, linenoise_ng::UTF8*, linenoise_ng::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*, linenoise_ng::UTF32**, linenoise_ng::UTF32*, linenoise_ng::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] [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: 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: 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: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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: 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: 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: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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.98s [INFO] running `Command { std: "docker" "inspect" "e9738df9bee5441cac8bb6c7e39cf0ff0dc4ff97104bed2726a6ec557bf59eb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9738df9bee5441cac8bb6c7e39cf0ff0dc4ff97104bed2726a6ec557bf59eb5", kill_on_drop: false }` [INFO] [stdout] e9738df9bee5441cac8bb6c7e39cf0ff0dc4ff97104bed2726a6ec557bf59eb5