[INFO] fetching crate linenoise-rust 0.2.1... [INFO] testing linenoise-rust-0.2.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-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 cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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-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] 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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4eff84c17a19ef2b2f9067428b8c3e61de2386f692f5bb2425ee68f7ffbb77be [INFO] running `Command { std: "docker" "start" "-a" "4eff84c17a19ef2b2f9067428b8c3e61de2386f692f5bb2425ee68f7ffbb77be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4eff84c17a19ef2b2f9067428b8c3e61de2386f692f5bb2425ee68f7ffbb77be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eff84c17a19ef2b2f9067428b8c3e61de2386f692f5bb2425ee68f7ffbb77be", kill_on_drop: false }` [INFO] [stdout] 4eff84c17a19ef2b2f9067428b8c3e61de2386f692f5bb2425ee68f7ffbb77be [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7f100c8adaf91f3a415c263a42ed8e12c195eaf33049db03dd81961f8195074 [INFO] running `Command { std: "docker" "start" "-a" "f7f100c8adaf91f3a415c263a42ed8e12c195eaf33049db03dd81961f8195074", 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.175 [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: 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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.41s [INFO] running `Command { std: "docker" "inspect" "f7f100c8adaf91f3a415c263a42ed8e12c195eaf33049db03dd81961f8195074", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7f100c8adaf91f3a415c263a42ed8e12c195eaf33049db03dd81961f8195074", kill_on_drop: false }` [INFO] [stdout] f7f100c8adaf91f3a415c263a42ed8e12c195eaf33049db03dd81961f8195074 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bbc4a0dfb6ccfad847fef8794d56691a6271e3d68b7120ec4d501ae9a699540e [INFO] running `Command { std: "docker" "start" "-a" "bbc4a0dfb6ccfad847fef8794d56691a6271e3d68b7120ec4d501ae9a699540e", 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] [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] [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] [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: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] [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] [stderr] warning: linenoise-rust@0.2.1: 272 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [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] [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: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] [stderr] warning: linenoise-rust@0.2.1: native/ConvertUTF.cpp:272:72: warning: this statement may fall through [-Wimplicit-fallthrough=] [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] [stderr] warning: linenoise-rust@0.2.1: 272 | case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [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] Compiling linenoise-rust v0.2.1 (/opt/rustwide/workdir) [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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "bbc4a0dfb6ccfad847fef8794d56691a6271e3d68b7120ec4d501ae9a699540e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbc4a0dfb6ccfad847fef8794d56691a6271e3d68b7120ec4d501ae9a699540e", kill_on_drop: false }` [INFO] [stdout] bbc4a0dfb6ccfad847fef8794d56691a6271e3d68b7120ec4d501ae9a699540e [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a04dca934d5829bd79cc0509003835dc04a11abb8a1f339d57144adcfd5d933c [INFO] running `Command { std: "docker" "start" "-a" "a04dca934d5829bd79cc0509003835dc04a11abb8a1f339d57144adcfd5d933c", 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] 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: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stderr] --> src/lib.rs:90:42 [INFO] [stderr] | [INFO] [stderr] 90 | let cs = CString::new(line).unwrap().as_ptr(); [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = 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] [stderr] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stderr] = help: for more information, see [INFO] [stderr] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stderr] [INFO] [stderr] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stderr] --> src/lib.rs:109:45 [INFO] [stderr] | [INFO] [stderr] 109 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = 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] [stderr] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stderr] = help: for more information, see [INFO] [stderr] [INFO] [stderr] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stderr] --> src/lib.rs:119:45 [INFO] [stderr] | [INFO] [stderr] 119 | let fname = CString::new(file).unwrap().as_ptr(); [INFO] [stderr] | --------------------------- ^^^^^^ this pointer will immediately be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = 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] [stderr] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stderr] = help: 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: for more information, see [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: `#[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.01s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/linenoise-714db1c626001c57) [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests examples/linenoise_example.rs (/opt/rustwide/target/debug/deps/linenoise_example-553c990ab63e03f0) [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] [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" "a04dca934d5829bd79cc0509003835dc04a11abb8a1f339d57144adcfd5d933c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a04dca934d5829bd79cc0509003835dc04a11abb8a1f339d57144adcfd5d933c", kill_on_drop: false }` [INFO] [stdout] a04dca934d5829bd79cc0509003835dc04a11abb8a1f339d57144adcfd5d933c