[INFO] fetching crate linenoise-rust 0.2.1... [INFO] testing linenoise-rust-0.2.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate linenoise-rust 0.2.1 into /workspace/builds/worker-7-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-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate linenoise-rust 0.2.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] warning: file `/workspace/builds/worker-7-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] Downloading crates ... [INFO] [stderr] Downloaded gcc v0.3.55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d15dfeda2a1214d4681c384031bb25337f76836d7973fb1c761acc9d8205d5c7 [INFO] running `Command { std: "docker" "start" "-a" "d15dfeda2a1214d4681c384031bb25337f76836d7973fb1c761acc9d8205d5c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d15dfeda2a1214d4681c384031bb25337f76836d7973fb1c761acc9d8205d5c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d15dfeda2a1214d4681c384031bb25337f76836d7973fb1c761acc9d8205d5c7", kill_on_drop: false }` [INFO] [stdout] d15dfeda2a1214d4681c384031bb25337f76836d7973fb1c761acc9d8205d5c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e1fe556fbec46d88b3f4c6307b6427ca64409e2469d200ac5b36a08435e587c [INFO] running `Command { std: "docker" "start" "-a" "8e1fe556fbec46d88b3f4c6307b6427ca64409e2469d200ac5b36a08435e587c", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` 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: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | let cs = CString::new(line).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:119:45 [INFO] [stdout] | [INFO] [stdout] 119 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: 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: 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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.05s [INFO] running `Command { std: "docker" "inspect" "8e1fe556fbec46d88b3f4c6307b6427ca64409e2469d200ac5b36a08435e587c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e1fe556fbec46d88b3f4c6307b6427ca64409e2469d200ac5b36a08435e587c", kill_on_drop: false }` [INFO] [stdout] 8e1fe556fbec46d88b3f4c6307b6427ca64409e2469d200ac5b36a08435e587c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d2baaea8b3ea3701ddd84da4cc81d6f4f36220306838f2d27794d8b07bd6caa [INFO] running `Command { std: "docker" "start" "-a" "7d2baaea8b3ea3701ddd84da4cc81d6f4f36220306838f2d27794d8b07bd6caa", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` 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] [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: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | let cs = CString::new(line).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:119:45 [INFO] [stdout] | [INFO] [stdout] 119 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling linenoise-rust v0.2.1 (/opt/rustwide/workdir) [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: 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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) 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: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:90:42 [INFO] [stdout] | [INFO] [stdout] 90 | let cs = CString::new(line).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:109:45 [INFO] [stdout] | [INFO] [stdout] 109 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stdout] --> src/lib.rs:119:45 [INFO] [stdout] | [INFO] [stdout] 119 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stdout] | --------------------------- ^^^^^^ pointer created here [INFO] [stdout] | | [INFO] [stdout] | this `CString` is dropped at end of statement [INFO] [stdout] | [INFO] [stdout] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stdout] = note: 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: 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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] running `Command { std: "docker" "inspect" "7d2baaea8b3ea3701ddd84da4cc81d6f4f36220306838f2d27794d8b07bd6caa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d2baaea8b3ea3701ddd84da4cc81d6f4f36220306838f2d27794d8b07bd6caa", kill_on_drop: false }` [INFO] [stdout] 7d2baaea8b3ea3701ddd84da4cc81d6f4f36220306838f2d27794d8b07bd6caa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7581cbd3e14badda9c272bac3e8ccce465fcf907dc0bc776aed8ac46630145b8 [INFO] running `Command { std: "docker" "start" "-a" "7581cbd3e14badda9c272bac3e8ccce465fcf907dc0bc776aed8ac46630145b8", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` 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] warning: use of deprecated struct `gcc::Build`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stderr] --> build.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | gcc::Build::new() [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `gcc::Build::new`: crate has been renamed to `cc`, the `gcc` name is not maintained [INFO] [stderr] --> build.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | gcc::Build::new() [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `linenoise-rust` (build script) generated 2 warnings [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] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/ffi.rs:976:40 [INFO] [stderr] | [INFO] [stderr] 976 | pub type linenoiseCompletionCallback = extern fn(*mut libc::c_char, *mut Struct_linenoiseCompletions); [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(missing_abi)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stderr] --> src/lib.rs:90:42 [INFO] [stderr] | [INFO] [stderr] 90 | let cs = CString::new(line).unwrap().as_ptr(); [INFO] [stderr] | --------------------------- ^^^^^^ pointer created here [INFO] [stderr] | | [INFO] [stderr] | this `CString` is dropped at end of statement [INFO] [stderr] | [INFO] [stderr] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stderr] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stderr] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stderr] --> src/lib.rs:109:45 [INFO] [stderr] | [INFO] [stderr] 109 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stderr] | --------------------------- ^^^^^^ pointer created here [INFO] [stderr] | | [INFO] [stderr] | this `CString` is dropped at end of statement [INFO] [stderr] | [INFO] [stderr] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stderr] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stderr] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: this creates a dangling pointer because temporary `CString` is dropped at end of statement [INFO] [stderr] --> src/lib.rs:119:45 [INFO] [stderr] | [INFO] [stderr] 119 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stderr] | --------------------------- ^^^^^^ pointer created here [INFO] [stderr] | | [INFO] [stderr] | this `CString` is dropped at end of statement [INFO] [stderr] | [INFO] [stderr] = help: bind the `CString` to a variable such that it outlives the pointer returned by `as_ptr` [INFO] [stderr] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stderr] = note: returning a pointer to a local variable will always result in a dangling pointer [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:179:34 [INFO] [stderr] | [INFO] [stderr] 179 | for external_callback in USER_COMPLETION.iter() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `linenoise-rust` (lib) generated 5 warnings (run `cargo fix --lib -p linenoise-rust` to apply 1 suggestion) [INFO] [stderr] warning: `linenoise-rust` (lib test) generated 5 warnings (5 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/linenoise-4e6dc7db631e90a4) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests examples/linenoise_example.rs (/opt/rustwide/target/debug/deps/linenoise_example-90188cf5f9eef3cf) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7581cbd3e14badda9c272bac3e8ccce465fcf907dc0bc776aed8ac46630145b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7581cbd3e14badda9c272bac3e8ccce465fcf907dc0bc776aed8ac46630145b8", kill_on_drop: false }` [INFO] [stdout] 7581cbd3e14badda9c272bac3e8ccce465fcf907dc0bc776aed8ac46630145b8